Re: Fastest replace method
Re: Fastest replace method
- Subject: Re: Fastest replace method
- From: Ali Ozer <email@hidden>
- Date: Mon, 13 Oct 2003 18:14:34 -0700
replaceOccurrencesOfString:withString: is likely to be faster, even
including the time to create the mutable string.
However it was added in 10.2, so it is not available on earlier systems.
Ali
Begin forwarded message:
From: Peter Schols <email@hidden>
Date: October 13, 2003 10:31:53 PDT
To: email@hidden
Subject: Fastest replace method
Hi,
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.
Thanks in advance!
Peter Schols
Laboratory of Plant Systematics - K.U.Leuven
_______________________________________________
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.