• 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: Autorelease pools?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Autorelease pools?


  • Subject: Re: Autorelease pools?
  • From: cricket <email@hidden>
  • Date: Thu, 18 Mar 2004 18:13:29 -0800

If you're generating a lot of autoreleased objects inside a loop, for example, you may want to put an autorelease pool inside the loop to keep memory usage from getting out of hand. You may not want to wait until the end of the current event loop (which is when the built in autorelease pool gets released).

Hope that helps,

- cricket

On Mar 18, 2004, at 5:47 PM, Kevin Ballard wrote:

Can anybody tell me what's the point of creating your own autorelease
pools when Cocoa automatically creates one for you?

--
Kevin Ballard
email@hidden
http://www.tildesoft.com
http://kevin.sb.org

[demime 0.98b removed an attachment of type application/pkcs7-signature which had a name of smime.p7s]
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.


References: 
 >Autorelease pools? (From: Kevin Ballard <email@hidden>)

  • Prev by Date: [OT] Re: Kudos Apple for the New and Improved Universal Access
  • Next by Date: Re: Autorelease pools?
  • Previous by thread: Re: Autorelease pools?
  • Next by thread: Re: Autorelease pools?
  • Index(es):
    • Date
    • Thread