Cargo Features
Vec64 has no features set by default.
[dependencies]
vec64 = { version = "0.4.2", features = ["parallel_proc", "wasm", "global", "thp", "mmap", "giant_pages"] }
- parallel_proc = rayon
-
Adds parallel iterators via
Rayon - wasm = rayon, wasm-bindgen, wasm-bindgen-rayon
-
WASM support with Web Worker threading
- global
-
Provides Alloc64Global for use as #[global_allocator]
Affects
vec64::global… - thp mmap?
-
Transparent huge page hints for Alloc64 on Linux via madvise
Enables libc
- mmap giant_pages? = thp
-
Vec64 backed by MAllocPg64 using mmap/mremap, Linux-only
Affects
vec64::mmap_alloc,vec64::Vec64Alloc… - giant_pages = mmap
-
1GB "gigantic" pages for MAllocPg64 allocations >= 1GB
Features from optional dependencies
In crates that don't use the dep: syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.