|
|
| Syntactic Confectionery Delight | |
| PerlMonks |
Re: Caching hashby gaal (Parson) |
| on Jun 29, 2009 at 20:35 UTC ( #775801=note: print w/ replies, xml ) | Need Help?? |
|
What's being slow, the IO of reading it from disk, or do you have some calculation going on in making it? How is it actually stored on disk? The fastest format for that is probably Storable::nstore(\%data, $file); ... Storable::retrieve($file). If you have some long-running process that can hold a copy of the data and you want to use that, is a real copy (over a named pipe or something) really too expensive? How big is your data? Is it immutable?
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||