mirror of
https://github.com/bobwen-dev/hunter
synced 2025-04-12 00:55:41 +02:00
fix performance regression from last commit
This commit is contained in:
parent
63bee693ec
commit
80678fb1f4
17
src/files.rs
17
src/files.rs
@ -562,13 +562,18 @@ pub fn from_getdents(fd: i32, path: &Path, nothidden: &AtomicUsize) -> Result<V
|
|||||||
nothidden.fetch_add(1, Ordering::Relaxed);
|
nothidden.fetch_add(1, Ordering::Relaxed);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// Finally the File is created
|
// Finally the File is created
|
||||||
let mut file = File::default();
|
let file = File {
|
||||||
file.name = name;
|
name: name,
|
||||||
file.hidden = hidden;
|
hidden: hidden,
|
||||||
file.kind = kind;
|
kind: kind,
|
||||||
file.path = path;
|
path: path,
|
||||||
|
dirsize: None,
|
||||||
|
target: None,
|
||||||
|
meta: None,
|
||||||
|
selected: false,
|
||||||
|
tag: None,
|
||||||
|
};
|
||||||
|
|
||||||
// Push into local Vec
|
// Push into local Vec
|
||||||
localfiles.push(file);
|
localfiles.push(file);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user