Re: Is this the correct way to cache an IMP?
Re: Is this the correct way to cache an IMP?
- Subject: Re: Is this the correct way to cache an IMP?
- From: Ken Thomases <email@hidden>
- Date: Thu, 5 Aug 2010 10:55:40 -0500
> On 05/08/2010, at 11:12 PM, Jean-Daniel Dupas wrote:
>
>> Probably not faster, but cleaner IHMO:
Actually, I suspect it is faster. All function invocations are direct rather than indirected through a pointer. This is faster in and of itself and also allows the compiler to recognize the recursion and optimize it. Of course, measuring of the performance or inspection of the generated assembler is the only way to be sure.
Regards,
Ken
_______________________________________________
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