• 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
Creating strings in a loop - Efficiency Question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Creating strings in a loop - Efficiency Question


  • Subject: Creating strings in a loop - Efficiency Question
  • From: Reza Farhad <email@hidden>
  • Date: Thu, 28 May 2009 17:20:44 +0100

Hi

I have a situation where I need to create a new string as I go through a loop.
What will be the most efficient way of doing this each time the call goes through the loop.


1. To create an auto releasing string.
2. To create a non auto-releasing string at the start of the loop and releasing it at the end of the loop.
3. To create a non auto-releasing mutable string before the loop and then at the start of the loop delete and reset it content to a new value. And obviously delete the string after the loop.


4. An alternative suggestion!!!!

Thanks in advance

Reza

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Creating strings in a loop - Efficiency Question
      • From: Roland King <email@hidden>
    • Re: Creating strings in a loop - Efficiency Question
      • From: Dave Carrigan <email@hidden>
  • Prev by Date: performSelectorOnMainThread problem
  • Next by Date: Re: Creating strings in a loop - Efficiency Question
  • Previous by thread: Re: performSelectorOnMainThread problem
  • Next by thread: Re: Creating strings in a loop - Efficiency Question
  • Index(es):
    • Date
    • Thread