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

Re: Out of Memory Error -- Possible Leak?

by Moron (Curate)
on Dec 15, 2005 at 12:19 UTC ( #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? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (2)
As of 2022-11-26 12:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?