Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Cache is one thing, but also you don't need to repeatedly perform hash functions. Array index lookup is of course far faster than map lookup.


also doing those map lookups twice per iteration, for some reason


Seems likely to be optimised by the compiler, not sure though.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: