> And because all code is in a single translation unit, compilers can do better inter-procedure and inlining optimization resulting in machine code that is between 5% and 10% faster. It's weird that this is still true even though compilers are now capable of whole program optimization at link time. Enabling LTO should be equivalent to compiling everything as a single translation unit but apparently it isn't. I wonder…
The SQLite Amalgamation
11–14 of 14 posts
Re: The SQLite Amalgamation
#12Re: The SQLite Amalgamation
#13Earlier quoted context omitted.
I’m pretty sure the primary reason Unity builds exist is to make builds faster by eliminating massively duplicated header compiles…
You have probably confused unity builds from precompiled header files, which can be combined in the same fashion. Unity builds just mean the combined compilation of otherwise multiple files and therefore the reduction of output files to be further processed. An unqualified "unity build" typically means unity builds where inputs are source files and outputs are object files to be linked. This is most evident by consid…
Re: The SQLite Amalgamation
#14Earlier quoted context omitted.
You have probably confused unity builds from precompiled header files, which can be combined in the same fashion. Unity builds just mean the combined compilation of otherwise multiple files and therefore the reduction of output files to be further processed. An unqualified "unity build" typically means unity builds where inputs are source files and outputs are object files to be linked. This is most evident by consid…
This has a good comparison of compile times with unity builds and PCH https://alexanderhoughton.co.uk/blog/faster-compiling-visual...