diff options
author | stephan <stephan@noemail.net> | 2022-10-04 11:14:23 +0000 |
---|---|---|
committer | stephan <stephan@noemail.net> | 2022-10-04 11:14:23 +0000 |
commit | ed3182f233690989b332f64548d03ef9eb791a5c (patch) | |
tree | 3bafad04faa5d1bc2f32a405c819c61c74046022 /ext/wasm/sqlite3-opfs-async-proxy.js | |
parent | 98e120fca0f6902bb8a9a8a394de577d6b9f0e7e (diff) | |
download | sqlite-ed3182f233690989b332f64548d03ef9eb791a5c.tar.gz sqlite-ed3182f233690989b332f64548d03ef9eb791a5c.zip |
Tweaks to the opfs async wait/relinquish times.
FossilOrigin-Name: 35f33c23e5849de1c43c4499ee0a7fa11d26ae34949c1e820c3fa8e8873f9c2b
Diffstat (limited to 'ext/wasm/sqlite3-opfs-async-proxy.js')
-rw-r--r-- | ext/wasm/sqlite3-opfs-async-proxy.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/wasm/sqlite3-opfs-async-proxy.js b/ext/wasm/sqlite3-opfs-async-proxy.js index b2b77fd4e..d9310d025 100644 --- a/ext/wasm/sqlite3-opfs-async-proxy.js +++ b/ext/wasm/sqlite3-opfs-async-proxy.js @@ -617,7 +617,7 @@ const waitLoop = async function f(){ We need to wake up periodically to give the thread a chance to do other things. */ - const waitTime = 200; + const waitTime = 500; /** relinquishTime defines the_approximate_ number of ms after which a db sync access handle will be relinquished so that we do not @@ -631,7 +631,7 @@ const waitLoop = async function f(){ once in a while (maybe 1 time in 5 or 10). Outliers as long as 7ms have been witnessed, but they're rare. */ - const relinquishTime = 750; + const relinquishTime = 500; let lastOpTime = performance.now(); let now; while(!flagAsyncShutdown){ |