What is the performance difference between blocks and callbacks?
Posted
by Don
on Stack Overflow
See other posts from Stack Overflow
or by Don
Published on 2010-04-21T04:19:38Z
Indexed on
2010/04/21
4:23 UTC
Read the original article
Hit count: 227
objective-c
|blocks
One of the things that block objects, introduced in Snow Leopard, are good for is situations that would previously have been handled with callbacks. The syntax is much cleaner for passing context around. However, I haven't seen any information on the performance implications of using blocks in this manner. What, if any, performance pitfalls should I look out for when using blocks, particularly as a replacement for a C-style callback?
© Stack Overflow or respective owner