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

i've written ip address database management systems that did everything in integers not necessarily because of the size benefits, but just because it's easier to sort ips stored as integers, do addition/subtraction easily when they cross network boundaries (10.10.10.254 + 6 is what?), and do cidr calculations.

if nothing else, storing ips in a sql database as integers will make searches on their indexes faster.



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

Search: