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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Optimize float-to-int Wasm trunc instructions #439

Merged
merged 4 commits into from
Sep 13, 2022
Merged

Conversation

Robbepop
Copy link
Member

@Robbepop Robbepop commented Sep 13, 2022

2022-09-13-180708_1330x100_scrot

According to our new benchmarks this optimization improves performance of all 8 float to int Wasm truncation instructions by roughly 6000% (a.k.a. 60 times faster).
This also gets us rid of the num-rational crate dependency from wasmi_core which reduces wasmi fresh release build time by roughly 23% and reduces Wasm file size of wasmi_core crate by roughly 5%.

Nuff said ...

These include:

- {i32,i64}.trunc_{f32,f64}_{s,u}

According to our new benchmarks this optimization improves performance of those listed instructions by 6000% (a.k.a x60). LOL
@Robbepop Robbepop merged commit 61ceb25 into master Sep 13, 2022
@Robbepop Robbepop deleted the rf-opt-wasm-f2i branch September 13, 2022 16:34
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

Successfully merging this pull request may close these issues.

1 participant