tim-harding / soa-rs

An SoA library for Rust
MIT License
113 stars 2 forks source link

Added #[inline] attributes for element access functions #9

Closed PPakalns closed 7 months ago

PPakalns commented 7 months ago

Looks like slice in rust core adds inline to almost all functions. https://doc.rust-lang.org/src/core/slice/index.rs.html

This should make sense in this use case too as compiler could optimize out pointer calculations to fields that are not accessed.

tim-harding commented 7 months ago

Looks good to me!