This patch focuses entirely on performance, eliminating startup lag and optimizing the TUI data pipeline for instant responsiveness.
Performance Improvements
-
Parallel Dependency Checks:
- Startup latency is drastically reduced by running dependency checks for
mpv(critical) andyt-dlp(optional) in concurrent threads. - Previously, the application waited for the slower
yt-dlp --versioncheck to finish before launching. Now, it processes both checks simultaneously, effectively halving the wait time (which technically isn't much but feels instant) - Ensures a valid state for CLI users while minimizing blocking time.
- Startup latency is drastically reduced by running dependency checks for
-
Batched TUI Data Loading:
- Implemented batch processing for sending items (Tracks, Playlists, Directories) to the fuzzy finder (
skim). - Items are now ingested in batches of 500 instead of individually.
- This significantly reduces async channel locking overhead and context switching, fixing the "rendering lag" seen in large libraries.
- Optimizes item ingestion to work efficiently with the Skim v3 async runtime.
- Implemented batch processing for sending items (Tracks, Playlists, Directories) to the fuzzy finder (