bytecodealliance / bytecodealliance/wasmtime

Pulley runs slower for float computation

Open
#10,545 2 comments 0 reactions 0 assignees View on GitHub
pulley
Dominant language
Rust
Stars
18.6k
Forks
1.8k
Avg merge
1d 19h
Merged PRs (30d)
121

Description

```rust
use glam::{Mat3A, Vec2};

#[unsafe(no_mangle)]
extern "system" fn test() -> f32 {
let mut a = Vec2::new(0.0, 0.0);
for i in 0..1000000 {
let p = Mat3A::from_angle(i as f32);
a = p.transform_point2(Vec2::from_angle(i as f32));
}
a.x
}
```
The above code runs 30% slower with pulley than in wasmi.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.