Function rg::search_parallel
source · pub(crate) fn search_parallel(args: &Args) -> Result<bool, Box<dyn Error>>
Expand description
The top-level entry point for multi-threaded search. The parallelism is itself achieved by the recursive directory traversal. All we need to do is feed it a worker for performing a search on each file.
Requesting a sorted output from ripgrep (such as with --sort path
) will
automatically disable parallelism and hence sorting is not handled here.