kleisauke / wasm-vips

libvips for the browser and Node.js, compiled to WebAssembly with Emscripten.
https://kleisauke.github.io/wasm-vips/
MIT License
463 stars 25 forks source link

Is it possible to use wasm-vips without concurrency and workers? #28

Closed lokiiarora closed 1 year ago

lokiiarora commented 1 year ago

Is it possible to have a custom build of wasm-vips without SharedArrayBuffer and Workers / concurrency ? We wrap wasm-vips to build an internal texture compressor, it becomes slightly harder to package this as a library with the Worker Pattern.

kleisauke commented 1 year ago

Hi, did you see #18 ?

lokiiarora commented 1 year ago

Oh no ! I did not see this, so the baseline being currently, it is not possible right?

kleisauke commented 1 year ago

I think it's currently impossible to workaround that, and I'm not sure it's worth the effort if it could, since SharedArrayBuffer is present in most major browser engines. It probably also affects performance in a negative way.

lokiiarora commented 1 year ago

Makes sense, thanks !