Speed up `Brain::evolve()`
syberant opened this issue · comments
This function takes way too long.
TODO:
- create lookup table at compile time
- maybe create a vectorised implementation
Seeing how I currently benchmark this at 12,000 ns/iter
and creating a new random Brain
is 5000 ns/iter
I think it may be (mostly) the allocation taking long.
Closing for now to focus on other optimisations.