Skip to main content

count_all_parallel

Function count_all_parallel 

Source
pub fn count_all_parallel(data: &[u8], utf8: bool) -> WcCounts
Expand description

Parallel counting of all metrics at once. Splits at newline boundaries for safe parallel word + max_line_length counting. Each chunk computes all metrics in a single traversal group, maximizing cache reuse.