4 ms·
I agree with almost all of this, including the point about c header files, except that code has to be in headers to be inlined (unless you use LTO), which in pr
by haberman 1y ago
I agree with almost all of this, including the point about c header files, except that code has to be in headers to be inlined (unless you use LTO), which in practice forces code into headers even if you’d prefer to keep it private.
- keldaris 1y agoThere's nothing wrong with using LTO, but I prefer simply compiling everything as a single translation unit ("unity builds"), which gets you all of the LTO benefits for free (in the sense that you still get fast compile times too).