Hacker News new | ask | show | jobs
by celegans25 863 days ago
> and replacing them with just straight up floating point calculation Not only that, the diff replaces 100-150 lines of code with 3. That's the kind of pull request I can only dream of making
1 comments

Hardcoding gamma=2 is doing the heavy lifting, though.
Gamma always equals 2, so it's a natural optimization. Assuming of course you are 0 indexing the alphabet.