• 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: Repetitive Appending of Strings
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Repetitive Appending of Strings


  • Subject: Re: Repetitive Appending of Strings
  • From: Adam P Jenkins <email@hidden>
  • Date: Tue, 12 Feb 2008 19:21:59 -0500

I just added this test case. It takes about 0.05 seconds. Definitely much better than using appendFormat:, and still lets you just use a String object rather than resorting to lower level types. I like it.

On Feb 12, 2008, at 6:54 PM, Jean-Daniel Dupas wrote:

The String way is slow due to the format parsing. For bench I think I will do this:


{
	UniChar uch = (i % 10) + '0';
	CFStringAppendCharacters((CFMutableStringRef)str, &uch, 1);
}



_______________________________________________

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


References: 
 >Repetitive Appending of Strings (From: Andrew Merenbach <email@hidden>)
 >Re: Repetitive Appending of Strings (From: "Michael Ash" <email@hidden>)
 >Re: Repetitive Appending of Strings (From: Adam P Jenkins <email@hidden>)
 >Re: Repetitive Appending of Strings (From: Andrew Merenbach <email@hidden>)
 >Re: Repetitive Appending of Strings (From: Adam P Jenkins <email@hidden>)
 >Re: Repetitive Appending of Strings (From: John Stiles <email@hidden>)
 >Re: Repetitive Appending of Strings (From: Adam P Jenkins <email@hidden>)
 >Re: Repetitive Appending of Strings (From: John Stiles <email@hidden>)
 >Re: Repetitive Appending of Strings (From: Adam P Jenkins <email@hidden>)
 >Re: Repetitive Appending of Strings (From: Jean-Daniel Dupas <email@hidden>)

  • Prev by Date: Finding where an app stalls
  • Next by Date: Re: In-loop releasing of objects does not free memory?
  • Previous by thread: Re: Repetitive Appending of Strings
  • Next by thread: NSStatusItem setHighlightMode throws NSInternalInconsistencyException on PowerPC ONLY (Works on Intel)
  • Index(es):
    • Date
    • Thread