Re: Helping Arc with: "PerformSelector may cause a leak because its selector is unknown"
Re: Helping Arc with: "PerformSelector may cause a leak because its selector is unknown"
- Subject: Re: Helping Arc with: "PerformSelector may cause a leak because its selector is unknown"
- From: ChanMaxthon <email@hidden>
- Date: Tue, 22 Oct 2013 16:02:28 +0800
Giving a mini performance boost. NSInvocation is utterly slow (multiple memory allocations asking for syscalls, and a chain of function calls including at least two objc_msgSends to invoke a method.) but good for IMP caching
performSelector methods are slightly slower than direct calls since there are two calls to objc_msgSend
Sent from my iPhone
> On 2013年10月22日, at 15:55, Igor Elland <email@hidden> wrote:
>
>
>> I suggest against NSInvocation. I will just throw in a direct call to objc_msgSend.
>
> Care to elaborate?
_______________________________________________
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