• 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: Speed comparison: compare:, methodForSelector: & CFNumberCompare()
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Speed comparison: compare:, methodForSelector: & CFNumberCompare()


  • Subject: Re: Speed comparison: compare:, methodForSelector: & CFNumberCompare()
  • From: Allan Odgaard <email@hidden>
  • Date: Mon, 23 Feb 2004 04:33:09 +0100

On 23. Feb 2004, at 0:24, Public Look wrote:

There is discussion of the merits and relative performance of using function pointers. There is discussion of the implementation of message sending. There is description of profiling to find out for sure where the time is being spent instead of guessing. There is discussion of the specific issues having to do with Foundation classes and class clusters such as NSNumber.

Sorry, but I am aware of all these things, and I do not think they shed light on why compare:, when invoked using a function pointer (in a concrete subclass), is that much slower than CFNumberCompare.

I could follow the example of the page you link to and disassemble compare:, I don't know if that was your intent? if so, I guess there is little reason for this mailing-list if the answer is that I should go look at the assembler source for things I do not understand! ;)
_______________________________________________
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: Speed comparison: compare:, methodForSelector: & CFNumberCompare()
      • From: Sailor Quasar <email@hidden>
References: 
 >Speed comparison: compare:, methodForSelector: & CFNumberCompare() (From: Allan Odgaard <email@hidden>)
 >Re: Speed comparison: compare:, methodForSelector: & CFNumberCompare() (From: Public Look <email@hidden>)
 >Re: Speed comparison: compare:, methodForSelector: & CFNumberCompare() (From: Allan Odgaard <email@hidden>)
 >Re: Speed comparison: compare:, methodForSelector: & CFNumberCompare() (From: Public Look <email@hidden>)

  • Prev by Date: Re: Speed comparison: compare:, methodForSelector: & CFNumberCompare()
  • Next by Date: Finding paragraphs in NSTextStorage
  • Previous by thread: Re: Speed comparison: compare:, methodForSelector: & CFNumberCompare()
  • Next by thread: Re: Speed comparison: compare:, methodForSelector: & CFNumberCompare()
  • Index(es):
    • Date
    • Thread