Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump wasm-opt to alleviate CPU idle in optimization phase #1378

Open
waynexia opened this issue Apr 9, 2024 · 0 comments
Open

Bump wasm-opt to alleviate CPU idle in optimization phase #1378

waynexia opened this issue Apr 9, 2024 · 0 comments

Comments

@waynexia
Copy link

waynexia commented Apr 9, 2024

馃挕 Feature description

Bump the bundled wasm-opt's version

馃捇 Basic example

In the current bundled wasm-opt (which is v0.111.0), the optimization phase takes a very long time (~7mins) in my project. And from htop most of the CPU are red.

I've tried to run the latest wasm-opt (8854bd8a58d7393c7bacd950884aea521ce8e19f) and it only takes 1min now:

time ./target/release/wasm-opt datafusion-wasm-bindings/pkg/datafusion_wasm_bg.wasm -o  datafusion-wasm-bindings/pkg/datafusion_wasm_bg.wasm-opt.wasm -O
./target/release/wasm-opt  -o  -O  241.60s user 1.79s system 404% cpu 1:00.12 total
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant