diff options
author | stephan <stephan@noemail.net> | 2022-09-19 05:19:04 +0000 |
---|---|---|
committer | stephan <stephan@noemail.net> | 2022-09-19 05:19:04 +0000 |
commit | 8766fd20d147c224f4bb6029699bb412bf636182 (patch) | |
tree | 8805271cab6a78f375d66fc1019b36f1b879377f /ext/wasm/sqlite3-opfs-async-proxy.js | |
parent | ac51eb77546653a6e0563adc0f3460ae69744485 (diff) | |
download | sqlite-8766fd20d147c224f4bb6029699bb412bf636182.tar.gz sqlite-8766fd20d147c224f4bb6029699bb412bf636182.zip |
Replace OPFS VFS xSleep() impl with a more efficient one (no Worker round-trip needed).
FossilOrigin-Name: b9773f164878b0a1b7c88cc7a6d1374ea95f64920065e8b2b178a1afffd82fe5
Diffstat (limited to 'ext/wasm/sqlite3-opfs-async-proxy.js')
-rw-r--r-- | ext/wasm/sqlite3-opfs-async-proxy.js | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/ext/wasm/sqlite3-opfs-async-proxy.js b/ext/wasm/sqlite3-opfs-async-proxy.js index 5969962d7..3ae6af043 100644 --- a/ext/wasm/sqlite3-opfs-async-proxy.js +++ b/ext/wasm/sqlite3-opfs-async-proxy.js @@ -287,12 +287,6 @@ const vfsAsyncImpls = { } storeAndNotify('xRead',rc); }, - xSleep: async function f(ms){ - log("xSleep(",ms,")"); - await new Promise((resolve)=>{ - setTimeout(()=>resolve(), ms); - }).finally(()=>storeAndNotify('xSleep',0)); - }, xSync: async function({fid,flags/*ignored*/}){ log("xSync(",arguments[0],")"); const fh = __openFiles[fid]; |