Crate velocityx

Crate velocityx 

Source
Expand description

§VelocityX

A comprehensive lock-free data structures library designed for high-performance concurrent programming.

§Features

  • MPMC Queue: Multi-producer, multi-consumer bounded queue
  • Concurrent HashMap: Lock-free reads with concurrent modifications
  • Work-Stealing Deque: For task scheduling and parallel workload distribution

§Philosophy

VelocityX focuses on providing:

  • Zero-cost abstractions with optimal performance
  • Comprehensive safety guarantees through Rust’s type system
  • Ergonomic APIs that guide users toward correct concurrent programming patterns
  • Extensive documentation and real-world usage examples

§Quick Start

use velocityx::queue::mpmc::MpmcQueue;

let queue = MpmcQueue::new(100);
queue.push(42);
assert_eq!(queue.pop(), Some(42));

§Thread Safety

All data structures in VelocityX are designed to be thread-safe and can be safely shared across threads without additional synchronization primitives.

§Performance

VelocityX is optimized for modern multi-core processors with careful attention to:

  • Cache-line alignment and padding
  • Memory ordering semantics
  • Contention minimization
  • NUMA-aware design where applicable

Re-exports§

pub use crate::queue::MpmcQueue;

Modules§

queue
Queue implementations for VelocityX
util
Common utilities and helper types

Enums§

Error
Error types for VelocityX operations

Type Aliases§

Result
Result type for VelocityX operations