Cargo Features
[dependencies]
oxidd-cache = { version = "0.9.0", default-features = false, features = ["statistics", "direct", "static_leak_check", "hugealloc", "parking_lot"] }
- default = direct
-
The
direct
feature is set by default wheneveroxidd-cache
is added without
somewhere in the dependency tree.default-features = false - statistics
-
Collect statistics about cache hits etc.
- direct default
-
Enable the direct mapped apply cache implementation
Affects
oxidd-cache::direct
… - static_leak_check
-
Check that an apply cache is never dropped via its
Drop
implementation. This is done by adding a function call to a non-existing external function to theDrop
implementation. So if the check fails, there will be a weird linker error. Using this feature in unoptimized builds may cause false positives. - hugealloc
-
Use the hugealloc crate to allocate memory
Enables allocator-api2 and hugealloc
hugealloc:
allocation with madvise for hugepages
- parking_lot
-
Use parking_lot instead of spinlocks