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

> you don’t have to hash the IP address

That's not necessarily slow. Or at least not as slow as multiple potential cache misses while traversing a tree. Once you know how many addresses you're expecting to have, you can make a hash indexing into a preallocated array which will never get smaller - if it fits into a few cache lines, it's great.



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

Search: