Optimize performance and reduce binary size
All checks were successful
Build and Release / build-and-release (push) Successful in 50s

- Remove tokio async runtime dependency (~2MB reduction)
- Optimize fuzzy search to avoid string allocations
- Optimize incremental search to only rebuild tree when needed
- Extract duplicate scrolling logic to helper function
- Replace magic numbers with named constants
- Fix terminal cleanup to run even on error
- Fix context menu item count mismatch
- Remove unused metadata fields (duration, codec, hash)
This commit is contained in:
2025-12-11 19:27:50 +01:00
parent 55e3f04e2c
commit 6ad522f27c
7 changed files with 444 additions and 448 deletions

View File

@@ -1,6 +1,6 @@
[package]
name = "cm-player"
version = "0.1.22"
version = "0.1.23"
edition = "2021"
[dependencies]
@@ -8,9 +8,6 @@ edition = "2021"
ratatui = "0.28"
crossterm = "0.28"
# Async runtime
tokio = { version = "1.40", features = ["full"] }
# Serialization
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"