In the time profiling section, the book recommends improving performance by splitting the rendering into two passes: one for "alive" cells and one for "dead" cells. This does, indeed, improve performance, but there is quite a bit of code duplication. We should add a note on how to refactor this to make it clear that this is something that developers should be thinking about.
In the time profiling section, the book recommends improving performance by splitting the rendering into two passes: one for "alive" cells and one for "dead" cells. This does, indeed, improve performance, but there is quite a bit of code duplication. We should add a note on how to refactor this to make it clear that this is something that developers should be thinking about.