My main interest is with moving code from header files to source files (for decoupling), but keeping the same performance for the inlined stuff.
I'm not sure where to get started, could someone explain what to do?
My main interest is with moving code from header files to source files (for decoupling), but keeping the same performance for the inlined stuff.
I'm not sure where to get started, could someone explain what to do?
We have made very limited experiments. In our case, performance gains where quite neglictible, but as we had already taken care of having good inlining, that's not extremely surprising.
However, enabling LTO incurred a huge increase in GCC's memory consumption, basically making parallel compilation impossible on our 4 CPU / 4 GB developpement machines, so we suspending the experiment and are waiting for future versions to try again.