Skip to content

Commit 93f60a1

Browse files
cjihrigaduh95
authored andcommitted
sqlite: disable memstatus APIs at build time
This commit defines SQLITE_DEFAULT_MEMSTATUS=0 for the SQLite build. This setting disables several currently unused C APIs in SQLite, which can yield noticeable performance improvements. This setting is also used by better-sqlite, and is one of the recommended compile-time options in the SQLite docs. The disabled APIs are used to report statistics about SQLite's memory usage. The drawback to this change is that those APIs could possibly be useful one day. Refs: https://sqlite.org/compile.html PR-URL: #56541 Reviewed-By: Daeyeon Jeong <[email protected]> Reviewed-By: Michaël Zasso <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Yagiz Nizipli <[email protected]>
1 parent 477e674 commit 93f60a1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

deps/sqlite/sqlite.gyp

+1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
'GCC_SYMBOLS_PRIVATE_EXTERN': 'YES', # -fvisibility=hidden
1414
},
1515
'defines': [
16+
'SQLITE_DEFAULT_MEMSTATUS=0',
1617
'SQLITE_ENABLE_MATH_FUNCTIONS',
1718
'SQLITE_ENABLE_SESSION',
1819
'SQLITE_ENABLE_PREUPDATE_HOOK'

0 commit comments

Comments
 (0)