diff --git a/src/main.rs b/src/main.rs index addc5e9..1a49734 100644 --- a/src/main.rs +++ b/src/main.rs @@ -20,10 +20,10 @@ use std::path::{Path, PathBuf}; use clap::Clap; use log::{debug, info, trace, warn}; use once_cell::sync::OnceCell; -use smartstring::alias::String; -use walkdir::{DirEntry, WalkDir}; #[cfg(feature = "multi-threaded")] use rayon::prelude::*; +use smartstring::alias::String; +use walkdir::{DirEntry, WalkDir}; use crate::findings::Findings; use crate::formats::{Format, Script}; @@ -130,7 +130,7 @@ fn scan_file(entry: &DirEntry) -> Result { fn scan_from_walkdir(entries: Vec) -> Vec> { #[cfg(feature = "multi-threaded")] { // rather than using a standard par_iter, split the entries into chunks of 32 first. - // this allows each spawned thread to handle 16 files before before closing, rather than creating a new thread for + // this allows each spawned thread to handle 32 files before before closing, rather than creating a new thread for // each file. this leads to a pretty substantial speedup that i'm pretty substantially happy about 0u0 entries .par_chunks(32) // split into chunks of 32 @@ -197,7 +197,7 @@ fn main() { let s = Script::new(); s.write_all(&results, &mut BufWriter::new(stdout().lock())).expect("failed to output"); } - OutputFormat::Text => debug!("eewr") + OutputFormat::Text => todo!() } debug!("Done");