• 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
Another autorelease question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Another autorelease question


  • Subject: Another autorelease question
  • From: Dave Riggle <email@hidden>
  • Date: Sat, 13 Sep 2003 09:07:37 -0700

I do a lot of string manipulations, then store the results in my runtime database. E.g.:

_name = [[path lastPathComponent] retain];

I might have several thousand such strings retained for the duration of my application. Is the autorelease pool going to look at these objects every time through the run loop? If so, that seems inefficient. Would I be better off copying the strings I want to store?

Dave
_______________________________________________
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.

  • Follow-Ups:
    • Re: Another autorelease question
      • From: Finlay Dobbie <email@hidden>
    • Re: Another autorelease question
      • From: Jerry Seeger <email@hidden>
    • Re: Another autorelease question
      • From: Cameron Hayne <email@hidden>
  • Prev by Date: Re: How do I debug an autorelease crash?
  • Next by Date: Re: Another autorelease question
  • Previous by thread: Re: How do I debug an autorelease crash?
  • Next by thread: Re: Another autorelease question
  • Index(es):
    • Date
    • Thread