Re: Fastest replace method
Re: Fastest replace method
- Subject: Re: Fastest replace method
- From: Karl Kuehn <email@hidden>
- Date: Tue, 14 Oct 2003 10:41:30 -0400
For that much string manipulation you might want to look at going
either with the OmniGroup's OFStringScanner, go to straight C strings,
or even play with Perl (via CamelBones). All of this simply for
speed...
Here are the links for you:
http://sourceforge.net/projects/camelbones/
http://camelbones.sourceforge.net/
http://www.omnigroup.com/developer/sourcecode/
Karl Kuehn
email@hidden
On Oct 13, 2003, at 1:31 PM, Peter Schols wrote:
I'm working with strings of about 250.000 characters (DNA sequences)
in which some (about 50-100) substrings need to be replaced or
removed.
For the moment, I'm using the componentsSeparatedByString:@" " /
componentsJoinedByString:@"" approach but I have come across another
method: replaceOccurrencesOfString:@" " withString:@"" and I'm
wondering which one would be the fastest.
_______________________________________________
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.