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:
@ -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
|
||||
|
@ -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){
|
||||
|
Reference in New Issue
Block a user