Expand description
This crate provides some useful utilities.
- The
hints moduleprovides hints to the compiler that affects how code should be emitted or optimized. - The
backoff moduleprovides theBackoffstructure. - The
cache_padded moduleprovides cache-padded atomics types and the [CachePadded] wrapper. - The
light_arc moduleprovides theLightArctype. - The
OrengineInstantthat is a monotone clock that weights 8 bytes on Unix-like systems. - The
ArrayQueuethat is an array-based queue implementation. - The
VecQueuethat is a vector-based queue implementation. - The
NumberKeyMapthat is a compact open-addressing map specialized forusizekeys optimized for zero-misses and so optimized for 99+% reading operations. - The
numa moduleprovides sufficient utilities for working with NUMA nodes. - Configuration macros that are used to right compile the program based on the target platform
such as
config_target_pointer_width_64,config_target_pointer_width_32, andconfig_target_pointer_width_16.
Re-exports§
pub use number_key_map::NumberKeyMap;
Modules§
- backoff
- This module provides a
Backoffthat can be used to busy-wait with preemptive yield when it is necessary. - cache_
padded - Provides cache-padded atomic types.
- hints
- Hints to the compiler that affects how code should be emitted or optimized.
- light_
arc - This module provides
LightArc. - numa
- Provides utilities for working with NUMA (Non-Uniform Memory Access) nodes.
- number_
key_ map - This module provides the
NumberKeyMapstruct.
Macros§
- config_
target_ pointer_ width_ 16 - Generates code only compiled when the target pointer width is 16 bits.
- config_
target_ pointer_ width_ 32 - Generates code only compiled when the target pointer width is 32 bits.
- config_
target_ pointer_ width_ 64 - Generates code only compiled when the target pointer width is 64 bits.
Structs§
- Array
Buffer ArrayBufferis a fixed-sized array-based buffer.- Array
Queue ArrayQueueis a queue, but it uses an array on a stack and can’t be resized.- Orengine
Instant - A monotone clock. It can be converted to/from
std::time::Instant. - VecQueue
- A queue that uses a vector to store the elements.
Functions§
- clear_
with - This function is like
drainfor the wholeVec, but faster.