Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
celegans25
· 2y ago · 0 comments
> 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
Comments
[–]
mwkaufma
2y ago
Hardcoding gamma=2 is doing the heavy lifting, though.
[–]
olddustytrail
2y ago
Gamma
always
equals 2, so it's a natural optimization. Assuming of course you are 0 indexing the alphabet.