kamil-tarnas / GameOfLife

Implementation of John Conway's Game of Life cellular automation
GNU General Public License v2.0
0 stars 1 forks source link

Branching in critical path #16

Open kamil-tarnas opened 6 years ago

kamil-tarnas commented 6 years ago

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.