When compiling SQLite, set the SQLITE_DEFAULT_MEMSTATUS=0 compile-time option.
commitae8ad71f9df42bdecc938ae949c1f6f592075b96
authorEvgeny Kotkov <[email protected]>
Tue, 20 Aug 2019 09:18:21 +0000 (20 09:18 +0000)
committerEvgeny Kotkov <[email protected]>
Tue, 20 Aug 2019 09:18:21 +0000 (20 09:18 +0000)
treed47b0784f129d9935573d7310373bc80a05e053e
parent9283de836dec68267bccea1be322ecb129bfc21e
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.

git-svn-id: https://svn.apache.org/repos/asf/subversion/trunk@1865522 13f79535-47bb-0310-9956-ffa450edef68
subversion/libsvn_subr/sqlite3wrapper.c