• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Blocking loops
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Blocking loops


  • Subject: Re: Blocking loops
  • From: "Shawn Erickson" <email@hidden>
  • Date: Fri, 16 Jun 2006 12:53:31 -0700

On 6/16/06, Drarok Ithaqua <email@hidden> wrote:
Ah, excellent!
Just one problem I came across, all the autoreleased objects inside
my loop built up and up and up and used over 1.2GB of RAM (looking at
top in Terminal).
I added another autorelease pool inside the loop - I don't know how
this is, performance wise, but it stopped my machine thrashing the
virtual memory, at least.

Is this the correct way to use AR pools?

Yes it can be. In my example code I did outline the recreation of auto-release pool in the while loop.

-Shawn
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Re: Blocking loops (From: Drarok Ithaqua <email@hidden>)

  • Prev by Date: Re: Blocking loops
  • Next by Date: NSTextView and Scrollbars
  • Previous by thread: Re: Blocking loops
  • Next by thread: NSTextView or NSTextField?
  • Index(es):
    • Date
    • Thread