syberant / evolvim

A port and further development of carykh's evolv.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.