Skip to main content

count_lines_parallel

Function count_lines_parallel 

Source
pub fn count_lines_parallel(data: &[u8]) -> u64
Expand description

Count newlines in parallel using SIMD memchr + rayon. Each thread gets at least 1MB (to amortize rayon scheduling overhead).