Skip to content

Commit

Permalink
document a possible tiny optimization
Browse files Browse the repository at this point in the history
  • Loading branch information
chadaustin committed Dec 19, 2024
1 parent d3f98b0 commit 6e09b51
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/scan.rs
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,8 @@ fn jwalk_scan(
#[cfg(windows)]
mod win;

// Optimization opportunity: &[&Path] could avoid allocation at some
// callsites as &mut dyn Iterator<Item = &Path>
type ScanFn =
fn(&[&Path]) -> anyhow::Result<batch_channel::Receiver<(IMPath, anyhow::Result<FileInfo>)>>;

Expand Down

0 comments on commit 6e09b51

Please sign in to comment.