Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: Out of Memory Error -- Possible Leak?

by Moron (Curate)
on Dec 15, 2005 at 12:19 UTC ( [id://516932]=note: print w/replies, xml ) Need Help??


in reply to Out of Memory Error -- Possible Leak?

Although arguably more perlish than for, foreach has the downside of duplicating the entire set in memory before iterating through it. Converting the foreach to a for ( k=0; ...; ) construction would avoid that.

-M

Free your mind

  • Comment on Re: Out of Memory Error -- Possible Leak?

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (4)
As of 2024-04-20 16:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found