3 ms·
I don't understand how value oriented vs object oriented matter considering the allocations in question was functions. Functions are hard to optimize away due t
by yxhuvud 10y ago
I don't understand how value oriented vs object oriented matter considering the allocations in question was functions. Functions are hard to optimize away due to the nature of functions being closures with pointers to the defining scope. Can you please elaborate what you mean?
- catnaroek 10y agoIf the identity of a function object doesn't matter, then a compiler can automatically lambda-lift inner functions that don't capture variables, without introducing new arguments.