2
votes
Optimise Game of Life in Rust
This looks more or less like how I would have written it, so I think it is nice. :)
(((rownum as isize + j % HEIGHT_I) + HEIGHT_I) % HEIGHT_I) as usize
I ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
rust × 690beginner × 172
performance × 51
algorithm × 48
programming-challenge × 35
parsing × 34
strings × 27
iterator × 17
reinventing-the-wheel × 16
multithreading × 15
primes × 15
file × 14
error-handling × 14
sorting × 12
tree × 12
sieve-of-eratosthenes × 12
game × 11
linked-list × 11
console × 11
generics × 11
file-system × 10
cryptography × 10
recursion × 9
asynchronous × 8
io × 8