Re: Repetitive Appending of Strings
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