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

It won't be a compile-time constant unless your hash table is incapable of resizing. And modulo arithmetic on arbitrary values is slow (20-94 cycles of latency on Sandy Bridge).


Hmm, good point. Is that also true for JIT compilers?




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

Search: