parallelism!!!
i was able to download my whole playlist in ~30 seconds (with unbounded parallelism that lagged the rest of my laptop)
next steps:
- maybe change parallelism from hardcoded 16 to num_cpus::get() or ask tokio how many threads we have
- use ratatui and display the status of each song being downloaded, since we’re using tracing we can use https://github.com/gin66/tui-logger
- use color_eyre https://ratatui.rs/recipes/apps/color-eyre/
- maybe add login, some songs are age restricted (even if they have no lyrics)
- definitely add configurable parallelism; i think this software would rip through playlists if it had more sqlite connections and more threads
not really any screenshots to show anymore……. but i can try and show how many tracks were downloaded successfully and how long it took
the screenshot is bounded by 16 futures at a time, which is probably too small and the sqlite connection pool is capped at 5. 2 minutes is a lot. but on a good note incremental syncs only take ~5.7 seconds
Comments 0
No comments yet. Be the first!
Sign in to join the conversation.