3 ms·
due to the widespread inlining and the use of templates On the other hand, this often causes a huge increase in code size, which means less code can fit in the
by userbinator 7y ago
due to the widespread inlining and the use of templates
On the other hand, this often causes a huge increase in code size, which means less code can fit in the instruction cache, and - even worse - when the system is on the verge of swapping, can make performance drop even faster. It's unfortunate that microbenchmarks often tend to favour such globally-inefficient code that's only slightly faster in isolation but bogs down the system as a whole.
This article is related: https://news.ycombinator.com/item?id=18777735 https://news.ycombinator.com/item?id=18777735