Creating strings in a loop - Efficiency Question
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