Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re^4: Out of Memory Error -- Possible Leak?

by Anonymous Monk
on Dec 16, 2005 at 01:19 UTC ( [id://517118]=note: print w/replies, xml ) Need Help??


in reply to Re^3: Out of Memory Error -- Possible Leak?
in thread Out of Memory Error -- Possible Leak?

Okay, I'm curious: does this matter? In my case the foreach loop is going over arrays that have ~100 elements. In this case, I would have expected the maximum memory usage to be 100 x (element-size + over-head). That doesn't seem too large, but it assumes that all memory is getting smoothly cleared after the foreach loop is finished. is that a valid assumption?

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

Replies are listed 'Best First'.
Re^5: Out of Memory Error -- Possible Leak?
by BrowserUk (Patriarch) on Dec 16, 2005 at 07:08 UTC
    is that a valid assumption?

    Yes. If the arrays in the loop are small it would make no appreciable difference.


    Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
    Lingua non convalesco, consenesco et abolesco. -- Rule 1 has a caveat! -- Who broke the cabal?
    "Science is about questioning the status quo. Questioning authority".
    In the absence of evidence, opinion is indistinguishable from prejudice.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (4)
As of 2024-04-19 22:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found