Repository navigation
Conversation
|
Great! I'm seeing a similar size reduction in wasm-vips when trying this: Before: $ du -b lib/*.wasm
3818743 lib/vips-heif.wasm
2239317 lib/vips-jxl.wasm
1178633 lib/vips-resvg.wasm
5106467 lib/vips.wasmAfter: $ du -b lib/*.wasm
3579436 lib/vips-heif.wasm
1730244 lib/vips-jxl.wasm
1178566 lib/vips-resvg.wasm
4338331 lib/vips.wasmI'm only worried about compiling libvips without I'm aware that the auto-vectorizer can give nice speedups with 256-bit vector registers (e.g. when building with Compiling libvips locally with I'll do some benchmarking to see what the impact is. I'm also curious about the effect on WebAssembly, e.g. libjpeg-turbo still doesn't have a Wasm SIMD implementation, so perhaps the auto-vectorizer does shine there. |
Most dependencies were already optimised for size, this PR applies this for everything, which means the following are now smaller but possible slightly less performant:
The resultant binaries weigh in at around ~12-15% smaller, here's linux-x64:
Before:
After:
Getting this in now ahead of the addition of libjxl/brotli so we can see the true impact.
/cc @kleisauke