• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Fastest replace method
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: Grep wrapper (was Re: Some small utility for Mac OS X.) [OT]
      • From: Joseph Heck <email@hidden>
References: 
 >Fastest replace method (From: Peter Schols <email@hidden>)

  • Prev by Date: Re: wchar_t and NSString
  • Next by Date: Quartz Frame Meter
  • Previous by thread: Re: Fastest replace method
  • Next by thread: Re: Grep wrapper (was Re: Some small utility for Mac OS X.) [OT]
  • Index(es):
    • Date
    • Thread