Hacker News new | ask | show | jobs
by Lt_Riza_Hawkeye 106 days ago
Even if you use C++, and your lambdas allocate to the heap when created and deallocate when going out of scope, this paper could still help reduce the need for heap allocation for capturing lambdas in the first place, improving performance.
1 comments

to be clear, C++ doesn't allocate lambdas on the heap. The allocation is under user control like for any other type.