2 ms·
Why would most things get inlined when you're optimizing for size rather than speed?
by einpoklum 4y ago
Why would most things get inlined when you're optimizing for size rather than speed?
- hackcasual 4y agoif you don't optimize for size, more things get inlined. LTO creates more inlining opportunities, so plain LTO will increase your binary size. A complicating factor is small functions often inline smaller than leaving them outlined, since you no longer need call and return infrastructure.