Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Perl > Perl Misc > Strange `Storable' behavior

Thread Tools

Strange `Storable' behavior

Lev Serebryakov
Posts: n/a
Hello, perl hackers!

I write script, whcih process some data step-by-step. Each step takes
some time (typical time is from 1 to 10 minutes, depends on input data)
and each step could fail.
I store full state of processing after each step with `Storable'
module. Full state is describing by array of references: some references
to array and some references to hashes. After first step only first
array is not empty (it contains parsed input data), after second step
some data is in some hashes, etc.
I see very strange timings of Storable::store() function calls. After
first 3 steps it is small (about 10 seconds for very big amount of input
data), after 4th step it is very big (about 240 seconds for same input
data), and after 5th step it is small again (12-14 seconds).
But each step only ADDS data tosaved state. So, every next dump is
GREATER in size that previous. And results of 4th step PRESENTS in
results of step 5. But results of 4th step are saved 20 times longer!
What does it mean and how this could be fixed?

I use Activestate's perl 5.8.0 on Win2K Pro.

Lev Serebryakov

Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Thunderbird strange behavior... Jim Firefox 5 11-17-2005 03:09 PM
Firefox 1.04 and Strange Find Behavior Thomas Firefox 5 06-28-2005 08:40 PM
utf8 pragma - strange behavior ryang Perl 1 04-11-2005 05:38 AM
strange behavior when using 'read' sstark Perl 0 03-06-2005 02:27 AM
undefined behavior or not undefined behavior? That is the question Mantorok Redgormor C Programming 70 02-17-2004 02:46 PM