From c75445087f1d18a61899e5ca0f36bafc6e35b572 Mon Sep 17 00:00:00 2001 From: stephan Date: Fri, 4 Nov 2022 09:02:21 +0000 Subject: Correct sqlite3-wasm.c's SQLITE_DEFAULT_CACHE_SIZE (it's measured in kb, not bytes). FossilOrigin-Name: 479ad980dfe509403e184e39a5aa441171e47b3297e05039f85516e72e9f15be --- ext/wasm/api/sqlite3-wasm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ext/wasm/api/sqlite3-wasm.c') diff --git a/ext/wasm/api/sqlite3-wasm.c b/ext/wasm/api/sqlite3-wasm.c index 203e70a3e..9d04ad129 100644 --- a/ext/wasm/api/sqlite3-wasm.c +++ b/ext/wasm/api/sqlite3-wasm.c @@ -67,7 +67,7 @@ ** larger cache benefits the larger workloads. Speed differences ** between 2x and nearly 3x have been measured with ample page cache. */ -# define SQLITE_DEFAULT_CACHE_SIZE -16777216 +# define SQLITE_DEFAULT_CACHE_SIZE -16384 #endif #if 0 && !defined(SQLITE_DEFAULT_PAGE_SIZE) /* TODO: experiment with this. */ -- cgit v1.2.3 From 8d7b41302f13ce815a6f1535ef8cc8f8fd5a1c8e Mon Sep 17 00:00:00 2001 From: stephan Date: Sun, 13 Nov 2022 19:29:51 +0000 Subject: Remove some outdated code comments. No code changes. FossilOrigin-Name: 80ff592a9d0157bfa8bd1f9959c3aa26cab0ec16fdccf7b58a7523b8912c1a8c --- ext/wasm/api/sqlite3-wasm.c | 3 --- 1 file changed, 3 deletions(-) (limited to 'ext/wasm/api/sqlite3-wasm.c') diff --git a/ext/wasm/api/sqlite3-wasm.c b/ext/wasm/api/sqlite3-wasm.c index 9d04ad129..af5ed6bf7 100644 --- a/ext/wasm/api/sqlite3-wasm.c +++ b/ext/wasm/api/sqlite3-wasm.c @@ -1108,9 +1108,6 @@ int sqlite3_wasm_init_wasmfs(const char *zMountPoint){ /** It's not enough to instantiate the backend. We have to create a mountpoint in the VFS and attach the backend to it. */ if( pOpfs && 0!=access(zMountPoint, F_OK) ){ - /* mkdir() simply hangs when called from fiddle app. Cause is - not yet determined but the hypothesis is an init-order - issue. */ /* Note that this check and is not robust but it will hypothetically suffice for the transient wasm-based virtual filesystem we're currently running in. */ -- cgit v1.2.3