Always build SQLCipher with OMIT_MEMLOCK to significantly increase its performance.
This commit is contained in:
parent
941bc7a4f1
commit
3114ef0b0c
|
@ -37,7 +37,7 @@ target_compile_definitions(tdsqlite PRIVATE
|
|||
#-DSQLITE_OMIT_DEPRECATED # SQLCipher uses deprecated sqlite3_profile
|
||||
#-DSQLITE_OMIT_SHARED_CACHE
|
||||
)
|
||||
target_compile_definitions(tdsqlite PRIVATE -DSQLITE_HAS_CODEC -DSQLITE_TEMP_STORE=2 -DSQLITE_ENABLE_FTS5 -DSQLITE_DISABLE_LFS)
|
||||
target_compile_definitions(tdsqlite PRIVATE -DSQLITE_HAS_CODEC -DSQLITE_TEMP_STORE=2 -DSQLITE_ENABLE_FTS5 -DSQLITE_DISABLE_LFS -DOMIT_MEMLOCK)
|
||||
|
||||
if (NOT WIN32)
|
||||
target_compile_definitions(tdsqlite PRIVATE -DHAVE_USLEEP -DNDEBUG=1)
|
||||
|
|
|
@ -22555,7 +22555,7 @@ end_of_export:
|
|||
|
||||
/* #include "sqlcipher.h" */
|
||||
/* #include "crypto.h" */
|
||||
#ifndef OMIT_MEMLOCK
|
||||
// #ifndef OMIT_MEMLOCK
|
||||
#if defined(__unix__) || defined(__APPLE__) || defined(_AIX)
|
||||
#include <errno.h>
|
||||
#include <unistd.h>
|
||||
|
@ -22564,7 +22564,7 @@ end_of_export:
|
|||
#elif defined(_WIN32)
|
||||
#include <windows.h>
|
||||
#endif
|
||||
#endif
|
||||
// #endif
|
||||
|
||||
static volatile unsigned int default_flags = DEFAULT_CIPHER_FLAGS;
|
||||
static volatile unsigned char hmac_salt_mask = HMAC_SALT_MASK;
|
||||
|
|
Loading…
Reference in New Issue