Function count_rows_par

Source
pub fn count_rows_par(full_bytes: &[u8], n_threads: Option<usize>) -> usize
Available on crate feature json only.
Expand description

Count the number of rows. The slice passed must represent the entire file. This will potentially parallelize using rayon.

This does not check if the lines are valid NDJSON - it assumes that is the case.