reduce memuse: fileinfo uses boxed path instead of pathbuf

reduce memuse: fileinfo does not store full metadata
This commit is contained in:
sreedevk committed 2025-07-13 13:45:30 +00:00
1 parent 5daec2f531
commit 81e13a14a2
3 files changed
+9 -8

No files matched your search

+1 -1
View File
@@ -18,7 +18,7 @@ impl Interactive {
itable.set_titles(row!["index", "filename", "size", "updated_at"]);
let max_path_size = group
.iter()
.map(|f| f.path.clone().into_os_string().len())
.map(|f| f.path.iter().count())
.max()
.unwrap_or_default();