Re: NSMutableArray sorting
Re: NSMutableArray sorting
- Subject: Re: NSMutableArray sorting
- From: Scott Ribe <email@hidden>
- Date: Sun, 21 Dec 2008 20:23:51 -0700
- Thread-topic: NSMutableArray sorting
> Yes, I think the key is that the expensive calculation is done only once for
> each object rather than every time a comparison needs to be made.
Yes, largely. It is possible that the overhead from Objective-C method calls
to a comparison selector could then be significant after that optimization
is made--but much less likely.
--
Scott Ribe
email@hidden
http://www.killerbytes.com/
(303) 722-0567 voice
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden