Skip to main content

should_use_vectorized

Function should_use_vectorized 

Source
pub fn should_use_vectorized(data: &[u8]) -> bool
Expand description

Decide whether vectorized matching should be used for the given data.

Returns true when the data has high printable ASCII density (>70%) and low-enough entropy (<6.0 bits/byte), indicating text-heavy content that benefits from deeper match searching.