in reply to A memory efficient hash, trading off speed - does it already exist?
In case you're really after a way to keep the data in memory (what do you mean, so you don't need persistent data? ;-), the same concept might save you some memory: keep a plain flat hash as your main data storage, of which the values are frozen records, which you must first thaw (to use the Storable terminology) into a plain hash in order to access the deeper underlying data. That's right, you can use Storable for that.
Somehow, I've got the gut feeling that this would imply reinventing MLDBM.
|
|---|