matmen / ImageScript

zero-dependency JavaScript image manipulation
https://www.npmjs.com/package/imagescript
Other
633 stars 32 forks source link

Use WebAssembly.instantiate in the browser #9

Closed Liamolucko closed 3 years ago

Liamolucko commented 3 years ago

WebAssembly.instantiate() compiles the WebAssembly on another thread, meaning you don't have to use a Worker.

matmen commented 3 years ago

I kinda liked the idea of having it run in another thread, but i guess people can still just move it to a WorkerThread. I'll write some tests for the browser branch when im back home and then merge it. Cheers

matmen commented 3 years ago

merged in 23e4081e94d7ad0074bb4d024df1f45fa2ca02fe