Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Optimizing a CFStringRef for CFStringCompare usage



Suppose I have a bunch (many hundreds) of CFStringRefs that could have come from anywhere and which are cached and I need to sort them (possibly multiple times) as quickly as possible using CFStringCompare. Is there anything I could do to my cached versions so that the guts of CFStringCompare runs as fast as possible.

I am thinking maybe ensuring that my cached versions have real unicode storage and are not left as 8-bit ascii for some strings etc.

Is this worthwhile and if so what is the correct way of getting my strings in such a state.

Matt Gough
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Carbon-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/carbon-dev/email@hidden

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.