Struct SimdStringMatcher
pub struct SimdStringMatcher { /* private fields */ }Expand description
SIMD-optimized string matcher for x86_64 platforms
Uses AVX2 instructions for 256-bit vectorized string comparison achieving up to 8x speedup for exact pattern matching.
Implementations§
§impl SimdStringMatcher
impl SimdStringMatcher
pub fn new() -> SimdStringMatcher
pub fn new() -> SimdStringMatcher
Create a new SIMD string matcher
pub fn add_pattern(&mut self, pattern: &str)
pub fn add_pattern(&mut self, pattern: &str)
Add a pattern for SIMD matching
pub fn find_exact_matches(&self, topic: &str) -> Vec<usize>
pub fn find_exact_matches(&self, topic: &str) -> Vec<usize>
Find exact matches using SIMD instructions
Auto Trait Implementations§
impl Freeze for SimdStringMatcher
impl RefUnwindSafe for SimdStringMatcher
impl Send for SimdStringMatcher
impl Sync for SimdStringMatcher
impl Unpin for SimdStringMatcher
impl UnwindSafe for SimdStringMatcher
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more