diff options
author | Canop <cano.petrole@gmail.com> | 2021-02-22 13:35:56 +0100 |
---|---|---|
committer | Canop <cano.petrole@gmail.com> | 2021-02-22 13:35:56 +0100 |
commit | 4e035c40bd41a2f15adf1dae9953578440ef5084 (patch) | |
tree | 5473a67b69cf556b748774b17a59c04a427660f8 /src/tree | |
parent | da67eb50e36fd55be27a1e6865c38b2eb03ff1b1 (diff) |
use ahash of some of the hashmaps with big keys
Diffstat (limited to 'src/tree')
-rw-r--r-- | src/tree/tree.rs | 2 | ||||
-rw-r--r-- | src/tree/tree_line_type.rs | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/tree/tree.rs b/src/tree/tree.rs index 36f2b7b..8617061 100644 --- a/src/tree/tree.rs +++ b/src/tree/tree.rs @@ -129,7 +129,7 @@ impl Tree { } } if self.options.needs_sum() { - time!(Debug, "fetch_file_sum", self.fetch_regular_file_sums()); // not the dirs, only simple files + time!("fetch_file_sum", self.fetch_regular_file_sums()); // not the dirs, only simple files self.sort_siblings(); // does nothing when sort mode is None } } diff --git a/src/tree/tree_line_type.rs b/src/tree/tree_line_type.rs index ed6d80b..6bc44a5 100644 --- a/src/tree/tree_line_type.rs +++ b/src/tree/tree_line_type.rs @@ -1,5 +1,5 @@ use { - fnv::FnvHashSet, + ahash::AHashSet, std::{ fs, io, @@ -41,7 +41,7 @@ impl TreeLineType { let mut final_ft = final_metadata.file_type(); let mut final_is_dir = final_ft.is_dir(); let mut link_chain_length = 0; - let mut visited = FnvHashSet::default(); + let mut visited = AHashSet::default(); while final_ft.is_symlink() { final_target = read_link(&final_target)?; if visited.contains(&final_target) { |