3 ms·
What does it do to speed?
by pfdietz 6y ago
What does it do to speed?
- yroux 6y agoThe focus is code size, but in terms of performance I don't have numbers to report but on average you can expect a regression around 2%, but it will depend of call latency of core and is also impacted by cache effects, so in some cases you can have a performance improvement
- rurban 6y agoIf 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.