Hacker News new | past | comments | ask | show | jobs | submit login

There is a lot of material in the article on power-of-two vs non-power-of-two sizes and it definitely includes a discussion of how POT is convenient due to modulo becoming a bitmask (not a bitshift, which would be division).



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

Search: