aboutsummaryrefslogtreecommitdiff
path: root/ext/wasm/api/sqlite3-wasm.c
diff options
context:
space:
mode:
authorstephan <stephan@noemail.net>2022-12-02 08:38:04 +0000
committerstephan <stephan@noemail.net>2022-12-02 08:38:04 +0000
commit20f0128acc16b44519933d0ab6ff9373b647227f (patch)
tree67f548a8dede4b1640e6e2652e4fd8846de27eb6 /ext/wasm/api/sqlite3-wasm.c
parentf3409db2d1c76cec89cd325b2baede6c582778c2 (diff)
downloadsqlite-20f0128acc16b44519933d0ab6ff9373b647227f.tar.gz
sqlite-20f0128acc16b44519933d0ab6ff9373b647227f.zip
Roll back the SQLITE_DEFAULT_PAGE_SIZE part of [c260895faacb34] because kvvfs does not work at all with a page size of 8kb.
FossilOrigin-Name: 7eec635562f65592121d7ff0a31a7b4ff6cdfe38e657f326302ef851b3b37c3f
Diffstat (limited to 'ext/wasm/api/sqlite3-wasm.c')
-rw-r--r--ext/wasm/api/sqlite3-wasm.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/ext/wasm/api/sqlite3-wasm.c b/ext/wasm/api/sqlite3-wasm.c
index 1edaec390..0e8aabd1a 100644
--- a/ext/wasm/api/sqlite3-wasm.c
+++ b/ext/wasm/api/sqlite3-wasm.c
@@ -65,10 +65,13 @@
# define SQLITE_DEFAULT_CACHE_SIZE -16384
#endif
#if !defined(SQLITE_DEFAULT_PAGE_SIZE)
-/* OPFS performance is improved with a page size of 8k instead
-** of 4k. kvvfs, OTOH, likely suffers from that. Peformance
-** with 16k is equivalent to 8k. */
-# define SQLITE_DEFAULT_PAGE_SIZE 8196 /*4096*/
+/*
+** OPFS performance is improved with a page size of 8kb instead of
+** 4kb. Performance with 16kb is equivalent to 8kb.
+**
+** However... kvvfs doesn't work at all with 8kb!
+*/
+# define SQLITE_DEFAULT_PAGE_SIZE 4096 /* 8196 */
#endif
#ifndef SQLITE_DEFAULT_UNIX_VFS
# define SQLITE_DEFAULT_UNIX_VFS "unix-none"