tomsonn / game-of-life

Conway's Game of Life
0 stars 0 forks source link

Inefficient neighbours check #3

Open lukaskubis opened 4 years ago

lukaskubis commented 4 years ago

This traversal algorithm is inefficient.

Do you need to go through all the cells? That won't work with the #2

tomsonn commented 4 years ago

Now I only iterate through active cells and their closest neighbours as candidates for the next iteration.