4 ms·
If the outlined code is cold, the Icache benefits from this part bring skipped (because it's behind a new function call), so that more hot code is being cached.
by rurban 6y ago
If the outlined code is cold, the Icache benefits from this part bring skipped (because it's behind a new function call), so that more hot code is being cached.
Which could benefit a few percent speedwise, in my case more than 3%.
If it's hot, it's a bit slower, because you have the added fn call overhead. So better do that manually.
- yroux 6y agoYes I agree, that's why function outlining is used for hot/cold splitting and partial inlining, in our case Machine Outlining is really dedicated to code size reduction.