• 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
Fastest replace method
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Fastest replace method


  • Subject: Fastest replace method
  • From: Peter Schols <email@hidden>
  • Date: Mon, 13 Oct 2003 19:31:53 +0200

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.

  • Follow-Ups:
    • Re: Fastest replace method
      • From: Karl Kuehn <email@hidden>
    • Re: Fastest replace method
      • From: Ali Ozer <email@hidden>
  • Prev by Date: OCUnit: Debugging a test (and the tested class)?
  • Next by Date: Re: Cocoa Java 1.4?
  • Previous by thread: Re: OCUnit: Debugging a test (and the tested class)?
  • Next by thread: Re: Fastest replace method
  • Index(es):
    • Date
    • Thread