Although most likely branch predictor will take care of those branches, as the value if set once for the whole simulation, one could optimize avoidable branches in GameOfLife.cpp:75-109 main loop.
It is also very critical and important part of the system, so it could be emphasized by moving this part of code to separate function.
Although most likely branch predictor will take care of those branches, as the value if set once for the whole simulation, one could optimize avoidable branches in GameOfLife.cpp:75-109 main loop.
It is also very critical and important part of the system, so it could be emphasized by moving this part of code to separate function.