Description
Hi,
I've read in the docs that WasmFS is a new filesystem that can be used to persist the virtual filesystem in emscripten. I also read in many articles online that WasmFS is about 2x faster than IDBFS.
However, I have an app that's doing small reads and small writes (less than 512 bytes) and I've noticed that WasmFS+OPFS is more than 2x slower on this scenario than IDBFS.
Is there some special config or compiler flag that I need to enable to make small reads and small writes on WasmFS+OPFS have similar performance to IDBFS?
Version of emscripten/emsdk:
emcc (Emscripten gcc/clang-like replacement + linker emulating GNU ld) 4.0.7 (8dc91db)
clang version 21.0.0git (https:/github.com/llvm/llvm-project 57025b42c43b2f14f7e58692bc19cd53d1b8a45e)
Target: wasm32-unknown-emscripten
Thread model: posix