1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-07-29 08:01:23 +03:00

Tweaks to the opfs async wait/relinquish times.

FossilOrigin-Name: 35f33c23e5849de1c43c4499ee0a7fa11d26ae34949c1e820c3fa8e8873f9c2b
This commit is contained in:
stephan
2022-10-04 11:14:23 +00:00
parent 98e120fca0
commit ed3182f233
4 changed files with 11 additions and 11 deletions

View File

@ -918,7 +918,7 @@ const installOpfsVfs = function callee(asyncProxyUri = callee.defaultProxyUri){
[
/* Truncate journal mode is faster than delete or wal for
this vfs, per speedtest1. */
"pragma journal_mode=truncate;",
"pragma journal_mode=truncate;"
/*
This vfs benefits hugely from cache on moderate/large
speedtest1 --size 50 and --size 100 workloads. We currently

View File

@ -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){