This followup to part three of the ongoing series "How to optimize in Objective-C" for now concludes the discussion about speeding up method calls.
This followup to part three of the ongoing series "How to optimize in Objective-C" for now concludes the discussion about speeding up method calls.
ååã¾ã§ã¯ã¡ã½ããã®å®ä½ãã¨ãã«MehtodãSELãIMPã¨ãã£ãã¡ã½ããã®æ§æè¦ç´ ã調ã¹ã¦æ¥ãããããããä»åããã¡ãã»ã¼ã¸éä¿¡ã®å®ä½ã«è¿«ããããã¾ãã¯ãã¡ãã»ã¼ã¸éä¿¡ãè¡ã£ã¦ããã©ã³ã¿ã¤ã APIããã ã objc_msgSend Objective-Cã«ããã¦ã¡ãã»ã¼ã¸éä¿¡ã¨ã¯ãæãå®è£ ããã®è¦³ç¹ããè¦ãã¨ãã¤ã¾ãã¨ããããã©ã¤ã³ã¿ã¤ã APIãå¼ã³åºãäºã«ãªãããã®é£è¼ã§ãååã¾ã§ã®10åããããè²»ããã¦ã¯ã©ã¹ãã¡ã½ããã®å®è£ ã説æãã¦ãããããã®ç®çã¯ãã®APIãç解ãããããã¨ãè¨ããããã®é¢æ°ã¯ãobjc_msgSendã ããããã¿ã¤ã宣è¨ã¯ãobjc-runtime.hã«ããã objc-runtime.h OBJC_EXPORT id objc_msgSend(id self, SEL op, ...); å¯å¤é·å¼æ°ãåãé¢æ°ã§ã第ä¸å¼æ°ã¯ã¡ãã»ã¼ã¸ãéãå ã®ãªãã¸ã§ã¯ãã
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}