Skip to main content

Module dispatch

Module dispatch 

Source
Expand description

Kernel dispatch for pure Rust SIMD implementations.

Provides wrappers around optimized Rust SIMD kernels from the simd module. Uses runtime CPU detection to select optimal code path.

§Migration from C++ FFI

This module previously used C++ SIMD kernels via FFI. It has been migrated to pure Rust implementations in the simd module, providing:

  • Unified toolchain (no C++ compiler needed)
  • Cross-function inlining
  • Better error messages and debugging
  • cargo miri support for undefined behavior detection

Re-exports§

pub use crate::simd::dispatch::CpuFeatures;
pub use crate::simd::dispatch::SimdLevel;

Structs§

BpsScanDispatcher
BPS scan dispatcher - uses pure Rust SIMD implementations.
DotI8Dispatcher
int8 dot product dispatcher - uses pure Rust SIMD implementations.
VisibilityDispatcher
SIMD-accelerated batch visibility checking for MVCC snapshots.

Functions§

cpu_features
Get detected CPU features (cached)
dispatch_info
Get dispatch info for debugging (runtime detection).
simd_available
Check if SIMD kernels are available (runtime detection).
simd_level
Get best available SIMD level