No such thing as a small change | |
PerlMonks |
MLDBM vs Storableby oakbox (Chaplain) |
on Feb 21, 2006 at 06:41 UTC ( [id://531629]=perlquestion: print w/replies, xml ) | Need Help?? |
oakbox has asked for the wisdom of the Perl Monks concerning the following question:
I have a hash of arrays that has about 150 unique keys. This hash is stored to disk using Storable. On each call, I read the Storable file into a hash in the program and perform the required lookups for display to the user. To be less abstract: The storable file holds text entries for different languages. The user of the web application is identified as using a particular language. When text needs to go to the screen, I just insert the appropriate language entry ($language->{unique_key}). I'm doing 99% reading and very little writing to this data. My question is, should I be using Storable here or tie(ing) this data structure using MLDBM? Which is faster? Is there a PROBLEM with just using Storable in this way?
Back to
Seekers of Perl Wisdom
|
|