diff options
author | drh <drh@noemail.net> | 2020-01-02 22:28:47 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2020-01-02 22:28:47 +0000 |
commit | 24d35e409c900adba4f5528e70c6c7e5e748cfd0 (patch) | |
tree | ebf7659473500f6e926d5db02e84f45081ac7fb7 /src/global.c | |
parent | 0c4f82051c7ff301ea78cf1d279005d2dc26ad19 (diff) | |
parent | 9fc1b9af36e54c7863a9404a9611abfb4b682374 (diff) | |
download | sqlite-24d35e409c900adba4f5528e70c6c7e5e748cfd0.tar.gz sqlite-24d35e409c900adba4f5528e70c6c7e5e748cfd0.zip |
Add the two-size lookaside memory allocator. Also, reduce the per-entry
size of the ExprList object.
FossilOrigin-Name: 51665bf0f975fb248964a4be205a4f3285d3f3f8cc697977d264efefbbe20dd8
Diffstat (limited to 'src/global.c')
-rw-r--r-- | src/global.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/global.c b/src/global.c index d8b3e1d31..29c251682 100644 --- a/src/global.c +++ b/src/global.c @@ -190,9 +190,18 @@ const unsigned char sqlite3CtypeMap[256] = { ** changed as start-time using sqlite3_config(SQLITE_CONFIG_LOOKASIDE) ** or at run-time for an individual database connection using ** sqlite3_db_config(db, SQLITE_DBCONFIG_LOOKASIDE); +** +** With the two-size-lookaside enhancement, less lookaside is required. +** The default configuration of 1200,40 actually provides 30 1200-byte slots +** and 93 128-byte slots, which is more lookaside than is available +** using the older 1200,100 configuration without two-size-lookaside. */ #ifndef SQLITE_DEFAULT_LOOKASIDE -# define SQLITE_DEFAULT_LOOKASIDE 1200,100 +# ifdef SQLITE_OMIT_TWOSIZE_LOOKASIDE +# define SQLITE_DEFAULT_LOOKASIDE 1200,100 /* 120KB of memory */ +# else +# define SQLITE_DEFAULT_LOOKASIDE 1200,40 /* 48KB of memory */ +# endif #endif |