Re: Message Forwarding Overhead / Performance
Re: Message Forwarding Overhead / Performance
- Subject: Re: Message Forwarding Overhead / Performance
- From: Jerry Krinock <email@hidden>
- Date: Tue, 28 Oct 2008 17:29:41 -0700
Well, I couldn't resist. I added a third test to my little test
project, using the new forwardingTargetForSelector: which Michael and
Peter had ferreted out of the Leopard Release Notes.
It is about 40x faster than the old NSInvocation-based message
forwarding. On the Early 2006 Core 2 Duo Mac Mini, typically a half
microsecond per message compared with 20 microseconds.
Close to 40x less code too :)
_______________________________________________
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