SQLite Forum

Inconsistent memory stats of sqlite3 with different compilers
Login
Small differences are  a common result of how the compilers allocate memory and optimise memory use.  Small differences in memory-use between compilers, even between different versions of the same compiler, do not indicate any fault.

You are especially likely to see this using <code>-DSSQLITE_DEBUG=1</code> because it includes many <code>assert</code>ions and the compiler doesn't expect to see <code>assert</code> in production code, so it doesn't bother optimising the code around it.

If one difference is more than 1,024 bytes, you *might* have found a bug in one of the compilers.

If you want to explore these differences, you might set compiler options to turn optimisation off on both of them, and see whether there's still a difference in the results they generate.