Skip to main content

process_text_file_parallel

Function process_text_file_parallel 

Source
pub fn process_text_file_parallel<F>(
    path: &Path,
    max_file_size: u64,
    line_processor: F,
) -> Result<()>
where F: Fn(&str) + Sync,
Expand description

Process UTF-8 lines in parallel once the immutable snapshot exceeds 1 MB.