google / brunsli

Practical JPEG Repacker
MIT License
730 stars 51 forks source link

Encoding is 10x slower with Safari #94

Closed jackyhallyday closed 4 years ago

jackyhallyday commented 4 years ago

Hi,

Safari supports WASM, but the encoding speed is 10x slower with it (v13.1.1 or Technology Preview 109) than it is with Chrome or Firefox (https://google.github.io/brunsli/). Is there something you can do to achieve similar performances across browsers?

eustas commented 4 years ago

I was asking WASM developers the similar questions... Got no answers.

As for Safari - I believe they use some kind of interpreter first... So try to encode few small images first, and then start real encoding. Should help.

jackyhallyday commented 4 years ago

Thanks for the tip, it works!