Comments (5)
Found the issue:
Lines 311 to 337 in 637c566
This is on v0.18.0
. The addition of default_fn!
prevents #[inline]
from working, which is causing the slowdown. This was fixed in #548 by moving the #[inline]
into the macro.
from cgmath.
Wow that's quite concerning! Thank you for bringing this up.
from cgmath.
comparing the benchmarks provided by the crate shows a similar (3x) increase:
cargo bench --feature rand _bench_matrix3_mul_m (0.18.0)
>> test _bench_matrix3_mul_m ... bench: 13 ns/iter (+/- 0)
cargo bench _bench_matrix3_mul_m (0.17.0)
>> test _bench_matrix3_mul_m ... bench: 4 ns/iter (+/- 0)
There was no significant increase for any of the other benchmarks regarding Matrix3
from cgmath.
It seems the problem is already fixed on the master branch, getting 4ns results there.
from cgmath.
Great, thank you for investigation!
from cgmath.
Related Issues (20)
- Why does `Point` exist? HOT 8
- Project management HOT 1
- Angle trait + Sized HOT 2
- Rotation matrix handedness HOT 2
- No Basis3 or Matrix3 identity? HOT 3
- Changelog not updated for v0.18 HOT 1
- Formatting of code in documentation of conv is broken HOT 1
- Creating a Matrix4 from Quaternions HOT 2
- "mint" feature not mentioned in the doc or anywhere HOT 1
- look_at for model matrices? HOT 2
- Unspecified behavior in `impl_tuple_conversions` HOT 2
- println!("{:?}", Vector3) gives wrong values?! HOT 1
- Help converting `Matrix4<f32>` to `&[f32]` HOT 1
- Clippy warnings HOT 1
- Special method for combined invert + transpose for matrices
- [question] cannot subtract `Vector3<T>` from `Vector3<T> HOT 1
- Publish new versions to crates.io. HOT 2
- How to add the bytemuck feature to my package? HOT 1
- Re-add Frustum extraction
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cgmath.