in reply to Re^2: Fast(er) serialization in Perl
in thread Fast(er) serialization in Perl
as I told you further down you can use Tie::Hash to keep the interface functional.
IMHO there are no general solutions faster than storable ! *
You need to provide more infos.
If your php is calling your perlscript you should check if you can hold the data structure in memory.
You may also check if you're not running into RAM problems causing massive swappings.
I once speeded up a program just by trasforming a huge hash into a hash of hashes (by halving the keys). Since the system only retrieved the sub-hashes actually needed from disk swap, I had a fantastic speed gain.
If this is transferable to your case is unknown since you do not provide enough infos...
Footnote: (*)
from StorableIMHO it's evident that you need to invest brain to achieve further speed gains!"SPEED
The heart of Storable is written in C for decent speed. Extra low-level optimizations have been made when manipulating perl internals, to sacrifice encapsulation for the benefit of greater speed."
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Fast(er) serialization in Perl
by mrguy123 (Hermit) on Apr 11, 2010 at 13:33 UTC | |
by The Perlman (Scribe) on Apr 11, 2010 at 13:47 UTC | |
by The Perlman (Scribe) on Apr 11, 2010 at 14:11 UTC | |
by mrguy123 (Hermit) on Apr 11, 2010 at 15:16 UTC | |
by The Perlman (Scribe) on Apr 11, 2010 at 18:23 UTC |