Beefy Boxes and Bandwidth Generously Provided by pair Networks RobOMonk
Perl: the Markov chain saw
 
PerlMonks  

Re: Garbage collection problem??

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

This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.


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
Sections?
Information?
Find Nodes?
Leftovers?
    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.