in reply to storing hash in temporary files to save memory usage
There are many file-based hashing modules, eg. BerkeleyDB::Hash, mod:/DB_File, DBM::Deep etc. But each have their own strengths and weaknesses depending upon how you need to use them.
Which, if any of them, is right for your application depends very much on:
Are these simple key/value pairs or can the values themselves also be hashes or arrays?
Is this a one-off thing? Ie. do you build the filed hashes once, run your processing, and then discard those files?
Or do they get reused many times?
Or multiple concurrent processes?
Or are they short lived processes (eg. webserver sessions) that open the file, access one or two keys and then close them again?
If you give us a clearer picture of the nature of the nature of the data and the processes accessing it, we could probably give you far better suggestions for which modules or methods most likely fit your needs.
|
|---|