3 ms·
It's 4 async calls, and it can be done entirely in the main thread so long as you use the async API. https://developer.mozilla.org/en-US/docs/Web/API/FileSystem
by dumbo-octopus 2y ago
It's 4 async calls, and it can be done entirely in the main thread so long as you use the async API. https://developer.mozilla.org/en-US/docs/Web/API/FileSystemWritableFileStream https://developer.mozilla.org/en-US/docs/Web/API/FileSystemW...
- jampekka 2y agoFor OPFS it's still 6 calls. And the async API doesn't support flushing writes. https://developer.mozilla.org/en-US/docs/Web/API/File_System_API/Origin_private_file_system https://developer.mozilla.org/en-US/docs/Web/API/File_System...