ultra
ultra copied to clipboard
Try optimizing fitness functions
This might be faster as an explicit loop where the outgoing character is modulo'd off the accumulated index, the index is multiplied by 26, then the incoming character is added in.
https://github.com/iKevinY/ultra/blob/5ac5ef0e0dacf199f22c6c2248467ccc6e631589/src/fitness.rs#L66-L69