• 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: array performance
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: array performance


  • Subject: Re: array performance
  • From: Michael Tsai <email@hidden>
  • Date: Mon, 16 Jun 2003 20:52:10 -0400

On Friday, June 13, 2003, at 08:51 PM, Pete Yandell wrote:

Sort a C array of ints using the qsort function: 1.89 seconds
Sort a C array of NSNumbers using the qsort function: 22.08 seconds

Sort an NSMutableArray of NSNumbers using the sortUsingSelector: method: 49.83 seconds
Sort an NSMutableArray of NSNumbers using the sortUsingFunction: method: 21.09 seconds

How about sorting a CFMutableArray of ints using CFArraySortValues?

--
Michael Tsai <http://www.c-command.com>
_______________________________________________
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: array performance
      • From: Michael Tsai <email@hidden>
References: 
 >Re: array performance (From: Pete Yandell <email@hidden>)

  • Prev by Date: Re: Cocoa-Java delegate name?
  • Next by Date: Re: Alternative to Interface Builder?
  • Previous by thread: Re: array performance
  • Next by thread: Re: array performance
  • Index(es):
    • Date
    • Thread