core icon indicating copy to clipboard operation
core copied to clipboard

`Port`: synchronous operations with `SharedArrayBuffer`

Open james-pre opened this issue 2 years ago • 0 comments

@jvilk:

If usable SharedArrayBuffers are detected when setting up the connection to/from the worker, use them for synchronous API calls.

@fallenoak:

@jvilk Out of curiosity, would this permit an async FS being used as a sync FS for Emscripten? I'm assuming no, but maybe I haven't quite wrapped my head around something.

@jvilk:

@fallenoak Yes, it would, but only if your emscripten code is running in a WebWorker.

https://github.com/jvilk/BrowserFS/issues/162

james-pre avatar Oct 25 '23 00:10 james-pre