3 ms·
Point-free composition can be more expensive and hard to optimize compared to anonymous functions, since you're now having to carry a heap-allocated closure aro
by vore 4y ago
Point-free composition can be more expensive and hard to optimize compared to anonymous functions, since you're now having to carry a heap-allocated closure around if you've partially applied arguments. Anonymous functions by contrast in C++ are super explicit about what they're capturing and you can be more sure of the allocations.
- gpderetta 4y agoStd::bind, assuming that's what the parent was referring to, does no heap allocation.
- deleted 4y ago[deleted]