Crates.io | aligned-vec |
lib.rs | aligned-vec |
version | 0.6.1 |
source | src |
created_at | 2022-07-24 09:34:31.875148 |
updated_at | 2024-07-18 22:09:48.937973 |
description | Aligned vector and box containers |
homepage | |
repository | https://github.com/sarah-ek/aligned-vec/ |
max_upload_size | |
id | 631904 |
size | 56,454 |
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.
std
(default feature): Links this crate to the std-crate
instead of the core-crate
.serde
: Implements serialization and deserialization features for ABox
and AVec
.