Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: Garbage collection problem??

by creamygoodness (Curate)
on Dec 27, 2006 at 14:25 UTC ( [id://591849]=note: print w/replies, xml ) Need Help??


in reply to Garbage collection problem??

I can't confirm this with the stock Perl 5.8.6 on OS X 10.4 -- the second run seems to be consistently as fast as the first.

However, I have experienced similar phenomena on this system before which I figured were a result of memory pool fragmentation. I have an indexing benchmarker script which inverts around 20000 Reuters news stories. In the initial version, once the script had been run a time or two (warming up the OS hard disk read cache) the first run was consistently faster than all subsequent runs by a few percentage points. I wound up launching a child process for each run to defeat the effect.

--
Marvin Humphrey
Rectangular Research ― http://www.rectangular.com

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://591849]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (3)
As of 2024-03-19 07:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found