in reply to RFC: Abusing "virtual" memory
But the real issue is: "Why use a disk-based hash store when you need to process the keys in sorted order?" (Do you need to process them in sorted order?)
If your keys are sequential, a simple fixed-length record file allows very good performance (you can add new keys to the end, and read a value with a single seek+read).
If your keys are more complex, I'd bring in an external indexing engine in the form of a db such as SQLite (or mysql, or postgres, or...).
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: RFC: Abusing "virtual" memory
by shmem (Chancellor) on Nov 27, 2007 at 16:22 UTC | |
by jbert (Priest) on Nov 27, 2007 at 17:47 UTC | |
by locked_user sundialsvc4 (Abbot) on Nov 28, 2007 at 04:46 UTC | |
by snowhare (Friar) on Dec 09, 2007 at 03:37 UTC | |
|
Re^2: RFC: Abusing "virtual" memory
by locked_user sundialsvc4 (Abbot) on Nov 28, 2007 at 04:40 UTC | |
by jbert (Priest) on Nov 28, 2007 at 13:22 UTC |