3 ms·
I literally said not to construct or destruct smart pointers on the hot path. Also, my experience with lambdas has been otherwise. There are a lot of cases wh
by pclmulqdq 4y ago
I literally said not to construct or destruct smart pointers on the hot path.
Also, my experience with lambdas has been otherwise. There are a lot of cases where lambdas need a heap allocation when you otherwise wouldn't. However, being able to use FP ideas can make up for that.
- ncmncm 4y agoMy objection is to the expression "C-like". That does not correctly distinguish what is fast from what isn't, and instead promotes a harmful myth. A lambda needs a heap allocation only if any of its captures do.