aboutsummaryrefslogtreecommitdiff
path: root/src/sqliteInt.h
diff options
context:
space:
mode:
authornumist <numist@noemail.net>2019-12-12 02:50:07 +0000
committernumist <numist@noemail.net>2019-12-12 02:50:07 +0000
commit115d663c05758e5d32a5c5123c1d7b4b5460ae7c (patch)
tree397de6901c0615c6c1a547250b5a20116614d17b /src/sqliteInt.h
parent3ecc05bc3fb414a0a184b4d69d5ecc38ddb24951 (diff)
downloadsqlite-115d663c05758e5d32a5c5123c1d7b4b5460ae7c.tar.gz
sqlite-115d663c05758e5d32a5c5123c1d7b4b5460ae7c.zip
More efficient implementation of a lookaside allocator that supports mini (in this case, harcoded to 128B) slots.
FossilOrigin-Name: b02fdc09c838f355d9efce57f817d6a86153153b4a1f2b763914f4aaa34cb76e
Diffstat (limited to 'src/sqliteInt.h')
-rw-r--r--src/sqliteInt.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/sqliteInt.h b/src/sqliteInt.h
index 2aca2abfa..528092337 100644
--- a/src/sqliteInt.h
+++ b/src/sqliteInt.h
@@ -1287,6 +1287,11 @@ struct Lookaside {
u32 anStat[3]; /* 0: hits. 1: size misses. 2: full misses */
LookasideSlot *pInit; /* List of buffers not previously used */
LookasideSlot *pFree; /* List of available buffers */
+#ifndef SQLITE_OMIT_MINI_LOOKASIDE
+ LookasideSlot *pMiniInit; /* List of mini buffers not prediously used */
+ LookasideSlot *pMiniFree; /* List of available mini buffers */
+ void *pMiddle; /* An address between the fullsize and mini buffers */
+#endif
void *pStart; /* First byte of available memory space */
void *pEnd; /* First byte past end of available space */
};