http://qs1969.pair.com?node_id=517118


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.