• 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: new to memory mgmt
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: new to memory mgmt


  • Subject: Re: new to memory mgmt
  • From: "Jonathan 'Wolf' Rentzsch" <email@hidden>
  • Date: Sun, 15 Feb 2004 14:59:34 -0600

pmcurry, email@hidden, wrote:
>I thought I had read somewhere that NSAutoreleasePools were expensive
>so I've been trying to only use them in a situation where I create an
>object within a function that I want to use as the return value.

NSAutoreleasePools aren't free. After your program is working, and
profiling points to chunk of code whose hotspot is usage of
NSAutoreleasePool, then you should optimize that case.

| Jonathan 'Wolf' Rentzsch http://rentzsch.com
| Red Shed Software http://redshed.net
| "better" necessarily means "different"
_______________________________________________
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.

  • Prev by Date: Re: new to memory mgmt
  • Next by Date: Re: [Slightly OT] Shareware donation collection
  • Previous by thread: Re: new to memory mgmt
  • Next by thread: Half-view scolling in NSTableView
  • Index(es):
    • Date
    • Thread