Thank you for this. How large is the allocation for closure for a delegate? Just a pair of pointers?
It depends on what the delegate needs to capture. It makes a copy of the local variables the function is referencing. (Usually pretty small I'd gamble; how big are your typical function's arguments and local vars?)