Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
vlovich123
· 2y ago · 0 comments
Since this is fairly static data, preprocess the on-disk format to match your memory layout and just mmap the file so that your memory usage for the DB is effectively 0 and the OS kernel pages it in/out for you based on system-level needs?
Comments
[–]
mstremer
2y ago
Or get a ready-made solution like libloc that implements this already with a tree, deduplication and blazing-fast lookups.
See
https://location.ipfire.org/
[–]
1a527dd5
2y ago
I feel like you should add a slight disclaimer that you are involved in the project in some capacity :)