Skip to main content

OPTIMAL_BYTES

Constant OPTIMAL_BYTES 

Source
pub const OPTIMAL_BYTES: usize = _; // 16usize
Expand description

Provides a constant optimizing BYTES (see Pattern) to target cpu simd width. This is a best-effort, defaulting to maximum supported bytes.

Note that BYTES also determines maximum pattern length.

There was no benchmark performed comparing different values of BYTES to assumed optimal platform target width.