Author: kotkov Date: Tue Aug 20 09:18:21 2019 New Revision: 1865522 URL: http://svn.apache.org/viewvc?rev=1865522&view=rev Log: When compiling SQLite, set the SQLITE_DEFAULT_MEMSTATUS=0 compile-time option.
This is the recommended option that is not enabled by default. Setting it to zero avoids using a mutex (and thus suffering a performance penalty) during every sqlite3_malloc() call, where this mutex is used to properly update the allocations stats. We don't use sqlite3_status(), so set this option to zero. See https://sqlite.org/compile.html#recommended_compile_time_options * subversion/libsvn_subr/sqlite3wrapper.c (): Define SQLITE_DEFAULT_MEMSTATUS=0. Modified: subversion/trunk/subversion/libsvn_subr/sqlite3wrapper.c Modified: subversion/trunk/subversion/libsvn_subr/sqlite3wrapper.c URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_subr/sqlite3wrapper.c?rev=1865522&r1=1865521&r2=1865522&view=diff ============================================================================== --- subversion/trunk/subversion/libsvn_subr/sqlite3wrapper.c (original) +++ subversion/trunk/subversion/libsvn_subr/sqlite3wrapper.c Tue Aug 20 09:18:21 2019 @@ -25,6 +25,7 @@ /* Include sqlite3 inline, making all symbols private. */ #ifdef SVN_SQLITE_INLINE # define SQLITE_OMIT_DEPRECATED 1 +# define SQLITE_DEFAULT_MEMSTATUS 0 # define SQLITE_API static # if __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 2) # pragma GCC diagnostic ignored "-Wunreachable-code"
