cpp_weekly icon indicating copy to clipboard operation
cpp_weekly copied to clipboard

How small object optimizations work

Open lefticus opened this issue 3 years ago • 0 comments
trafficstars

std::any, std::function and std::string each have optimizations that avoid heap allocations for the case of "small" objects. How do these optimizations work?

lefticus avatar Aug 02 '22 00:08 lefticus