5 ms·
objc_msgSend does allocate memory - for the IMP caches, and the class initialization costs (and calling +initialize) the first time you message a class.
by astrange 4y ago
objc_msgSend does allocate memory - for the IMP caches, and the class initialization costs (and calling +initialize) the first time you message a class.
- klodolph 4y agoSure. It allocates zero heap memory per call, amortized.