10 releases (5 breaking)
0.6.1 | Jul 18, 2024 |
---|---|
0.6.0 | May 21, 2024 |
0.5.0 | Aug 21, 2022 |
0.4.2 | Jul 29, 2022 |
0.1.0 | Jul 24, 2022 |
#301 in Parser implementations
324,366 downloads per month
Used in 143 crates
(26 directly)
56KB
1.5K
SLoC
aligned-vec
This crate provides the AVec<T>
and ABox<T>
types, which are intended to have a similar API
to Vec<T>
and Box<T>
, but align the data they contain to a runtime alignment value.
This is useful for situations where the alignment of the data matters, such as when working with numerical data that can get performance benefits from being aligned to a SIMD-compatible memory address.
Features
std
(default feature): Links this crate to thestd-crate
instead of thecore-crate
.serde
: Implements serialization and deserialization features forABox
andAVec
.
lib.rs
:
aligned-vec
This crate provides the AVec<T>
and ABox<T>
types, which are intended to have a similar API
to Vec<T>
and Box<T>
, but align the data they contain to a runtime alignment value.
This is useful for situations where the alignment of the data matters, such as when working with numerical data that can get performance benefits from being aligned to a SIMD-compatible memory address.
Features
std
(default feature): Links this crate to thestd-crate
instead of thecore-crate
.serde
: Implements serialization and deserialization features forABox
andAVec
.
Dependencies
~0.3–0.8MB
~19K SLoC