I just noticed that at the beginning of the sqlite 3 source code file, it says:
/******************************************************************************
** This file is an amalgamation of many separate C source files from SQLite
** version 3.27.1. By combining all the individual C code files into this
** single large file, the entire code can be compiled as a single translation
** unit. This allows many compilers to do optimizations that would not be
** possible if the files were compiled separately. Performance improvements
** of 5% or more are commonly seen when SQLite is compiled as a single
** translation unit.
I don't know this before and can't find an authoritative source to back it up. Is this true? What about C++?