3 ms·
Link time optimization is definitely not new, but it is incredibly powerful - I have personally had situations where the failure to be able to inline functions
by Remnant44 1y ago
Link time optimization is definitely not new, but it is incredibly powerful - I have personally had situations where the failure to be able to inline functions from a static library without lto cut performance in half.
It's easy to dismiss a basic article like this, but it's basically a discovery that every Junior engineer will make, and it's useful to talk about those too!
- srean 1y agoThe inline keyword should really have been intended for call sites rather than definitions. Perhaps language designers thought that if a function needs to be inlined everywhere, it would lead to verbose code. In any case, it's a weak hint that compilers generally treat with much disdain.