Module simd_utils

Module simd_utils 

Source
Expand description

SIMD-optimized utilities for performance-critical operations.

This module provides SIMD-accelerated functions for common operations:

  • String comparison
  • ASCII validation
  • Byte searching
  • Byte counting

SIMD implementations are architecture-specific and automatically selected at compile time. Falls back to scalar implementations when SIMD is not available.

Functionsยง

count_byte_fast
Fast count of specific byte in slice using SIMD.
fast_str_eq
Fast string comparison using SIMD when available.
find_byte_fast
Fast byte search using SIMD.
is_ascii_fast
Fast check if string contains only ASCII characters using SIMD.