I you're trying to search for shared prefixes, you might want to store
your data in a data structure better suited for such tasks, such as a
Trie <http://en.wikipedia.org/wiki/Trie>. Tries are fast and compact.
Implementing a Trie isn't very difficult and, since it's such a
commonly used data structure for string-related tasks, you'll be able
to find good implementations on the web.
Wagner
_______________________________________________
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com
This email sent to arch...@mail-archive.com