[NSString UTF8String] performance
[NSString UTF8String] performance
- Subject: [NSString UTF8String] performance
- From: Jesse Grosjean <email@hidden>
- Date: Sun, 15 Feb 2004 10:57:11 -0500
I'm using the AGRegex kit to match regular expressions and with larger
files it's starting to get very slow. The bottleneck seems to be in
[NSString UTF8String] which it calls often. Each call to UTF8String
seems to be calling both
__CFStringEncodedByteStream and
creates a new NSData
Does this conversion and copy always happen when calling UTF8String? Or
do I have my string in the wrong format? I was hoping that their would
be a way to make UTF8String just return a pointer to some underlying
data structure.
Thanks,
Jesse
_______________________________________________
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.