Re: Speed comparison: compare:, methodForSelector: & CFNumberCompare()
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.