emscripten-core / emscripten-core/emscripten

WasmFS: Pre-open OPFS files

Open
#17,161 3 comments 0 reactions 0 assignees View on GitHub
wasmfs
Dominant language
C++
Stars
27.6k
Forks
3.6k
Avg merge
1d 1h
Merged PRs (30d)
105

Description

For the OPFS backend in particular, reading and writing (and potentially other operations, depending on what happens with the APIs) are synchronous, but it takes some asynchronous work to acquire the necessary handles first. If we could "pre-open" files on a main application thread by doing that asynchronous work during startup, then we would be able to synchronously read and write the files from that thread without any further proxying.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.