Skip to main content

Module simd_class

Module simd_class 

Source
Expand description

SIMD-accelerated character class matching.

This module provides fast character class membership testing using:

  1. 128-bit ASCII bitmap for O(1) single-character lookups
  2. SIMD vectorized scanning for finding matches in byte slices

Structsยง

AsciiClassBitmap
A 128-bit bitmap for fast ASCII character class membership testing. Each bit represents whether the corresponding ASCII byte (0-127) is in the class.
CompiledCharClass
A precompiled character class for fast matching. Combines bitmap for ASCII and handles non-ASCII via the original CharClass.