1
0
Fork 0
mirror of synced 2024-05-12 16:32:43 +12:00

Decrease used memory to prevent stack overflow (#563)

This commit is contained in:
Rafał Mikrut 2022-01-06 20:28:22 +01:00 committed by GitHub
parent aaa5885326
commit 74e4ab5263
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 {