4 ms·
All of those costs, except for heap allocation related ones, are roughly per-function-call costs. If a function gets inlined, an optimizer can get rid of them.
by robryk 11y ago
All of those costs, except for heap allocation related ones, are roughly per-function-call costs. If a function gets inlined, an optimizer can get rid of them.
Also, don't some link time optimizers help with pessimizations related to calling conventions?
- cbsmith 11y agoA sufficiently smart compiler/linker can always undo things.