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 protected]> wrote: > > >> I suggest against NSInvocation. I will just throw in a direct call to >> objc_msgSend. > > Care to elaborate? _______________________________________________ Cocoa-dev mailing list ([email protected]) 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: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [email protected]
