Lokathor / wide

A crate to help you go wide. By which I mean use SIMD stuff.
https://docs.rs/wide
zlib License
279 stars 23 forks source link

Add inline attribute to array casts #116

Closed shssoichiro closed 1 year ago

shssoichiro commented 1 year ago

I found that the Rust compiler was not inlining the methods to_array and as_array_ref, which are extremely thin wrappers around cast functions and should in theory always be inlined. The lack of inlining was also preventing certain code optimizations that the compiler would normally perform.

Lokathor commented 1 year ago

I added even more #[inline] on a lot of other methods too and then released 0.7.5