Moirai Iterator - Unified high-performance iterator system for concurrent, parallel, and async computing.
This module provides a comprehensive iterator framework that abstracts over different execution contexts:
- Parallel: CPU-bound work across multiple threads with work-stealing
- Async: I/O-bound work with efficient async/await patterns
- Hybrid: Mixed workloads combining parallel and async execution
Design Principles
- Zero-cost abstractions: Compile-time optimizations with no runtime overhead
- Memory efficiency: NUMA-aware allocation and cache-friendly data layouts
- Execution agnostic: Same API works across all execution contexts
- Type safety: Comprehensive compile-time guarantees
- Performance: SIMD vectorization and CPU optimization
- Async compatibility: Native async/await support throughout