Reduce memory usage by ~50 MB for large libraries
All checks were successful
Build and Release / build-and-release (push) Successful in 50s

FlattenedItem now stores only essential fields (path, name, is_dir, depth)
instead of cloning entire FileTreeNode structures. For 500,000 files, this
reduces memory from ~100 MB to ~50 MB for the flattened view.

- Extract only needed fields in flatten_tree()
- Add find_node_by_path() helper to look up full nodes when needed
- Update all UI and state code to use new structure
This commit is contained in:
2025-12-11 19:39:26 +01:00
parent 6ad522f27c
commit 4529fad61d
4 changed files with 81 additions and 53 deletions

View File

@@ -1,6 +1,6 @@
[package]
name = "cm-player"
version = "0.1.23"
version = "0.1.24"
edition = "2021"
[dependencies]