Mailing Lists: Apple Mailing Lists

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

Re: Optimizing a CFStringRef for CFStringCompare usage



On 7/29/05 12:17 PM, Matt Gough didst favor us with:

> 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.

What do you mean by your "cached" versions? Also, have you identified a
performance issue that needs to be addressed or are you just assuming the
performance will be an issue?

Larry

 _______________________________________________
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

References: 
 >Optimizing a CFStringRef for CFStringCompare usage (From: Matt Gough <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.