Can we avoid omjamsgraph function overhead by using sel and imp mean selector and implementation pointer. Please tell how we can avoid it? / P>
// First of all, you are interested in SELactor (for example) SEL sel = @ Selector (& lt; #nothing & gt;); // This is the definition of IMP ID (* IMP) (ID, SEL, ...); : + (IMP) Examples: Modifier selector: (SEL) Auckler; Ideally, you will remove the result of exampleMethodForSelector: for the function's Precise type F, which you call, get the compiler sig right Could. Once you have an object, SEL and IMP, then use IMP as a simple function pointer.
Where the first message for the IMP function is returned (= self ), and the second argument is selector = _cmd ). These are 2 hidden objc arguments.
Comments
Post a Comment