|
|
| Perl Monk, Perl Meditation | |
| PerlMonks |
Using bytecode for object serializationby tall_man (Parson) |
| on Sep 26, 2003 at 17:04 UTC ( #294498=perlquestion: print w/ replies, xml ) | Need Help?? |
|
tall_man has asked for the
wisdom of the Perl Monks concerning the following question:
I am trying to find a way to serialize large data-structure objects which
makes them load more quickly than with Storable or Data::Dumper.
I have a large perl data structure that does not change often. Here is what I
tried:
First, I took Data::Dumper output and wrapped it in a subroutine.
Then I creadted bytecode for this routine using perlcc:
perlcc -B -o bytecode make_byteObject.pl To use the object, I invoked the bytecode with "do" and called the subroutine: In the example I tried, the byte-coded version loaded a tiny bit faster than the Data::Dumper version, but not significantly. Any suggestions to improve on this idea?
Back to
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||||||||