Re: NSMapTable with C strings as keys
Re: NSMapTable with C strings as keys
- Subject: Re: NSMapTable with C strings as keys
- From: Jean-Daniel Dupas <email@hidden>
- Date: Wed, 29 May 2013 13:35:04 +0200
Le 29 mai 2013 à 06:14, Oleg Krupnov <email@hidden> a écrit :
>> Why not just create NSString wrappers? By using the -initWithBytesNoCopy:length:encoding:freeWhenDone: method you can avoid it copying the actual C string characters, it literally just becomes a thin wrapper.
>
> In my case it's more about extra calls than extra memory but thanks! Didn't know about this.
>
If method dispatch time is your main problem, just use CFString and CFDictionary API.
-- Jean-Daniel
_______________________________________________
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