c - Storing a large hash on HDD -


About 80 GB size on hard drive, I'm trying to store a simple large handtable (64 bit key, 64 bit value) I

If I want to get the best performance, what's the most effective way to do this?

Are completely random to look and I have to see every 10ms? Is C / Linux available as a library, which is the key to map / hash for logical block address of HDD so that access can be done faster?

Please give some guidelines.

You can use the memory map file ( mmap ), this By the way, your data is such that you will only read one page for each lookup. This can be done through all the keys given in the file, and then there is a memory index that holds the first key of each page.


Comments

Popular posts from this blog

sqlite3 - UPDATE a table from the SELECT of another one -

c# - Showing a SelectedItem's Property -

javascript - Render HTML after each iteration in loop -