Decrease used memory to prevent stack overflow (#563)
This commit is contained in:
parent
aaa5885326
commit
74e4ab5263
|
@ -739,7 +739,7 @@ impl DuplicateFinder {
|
|||
.map(|(size, vec_file_entry)| {
|
||||
let mut hashmap_with_hash: BTreeMap<String, Vec<FileEntry>> = Default::default();
|
||||
let mut errors: Vec<String> = Vec::new();
|
||||
let mut buffer = [0u8; 1024 * 128];
|
||||
let mut buffer = [0u8; 1024 * 16];
|
||||
|
||||
atomic_file_counter.fetch_add(vec_file_entry.len(), Ordering::Relaxed);
|
||||
for mut file_entry in vec_file_entry {
|
||||
|
|
Loading…
Reference in a new issue