diff options
author | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2025-06-15 17:40:55 +0200 |
---|---|---|
committer | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2025-06-15 17:40:55 +0200 |
commit | ab56f2550d5086ccd1c6981b62081b70743a1f2c (patch) | |
tree | 780d238487aad6a7f6d917704641f93c1ed3262d /crates/fmt | |
parent | feat(yt/select): Support a directory selection process (diff) | |
download | yt-ab56f2550d5086ccd1c6981b62081b70743a1f2c.zip |
perf(yt/update/updater): Acknowledge, that `yt_dlp` has a sync API
The previous code was written with the assumption, that `yt_dlp` had an async API (which means, that calls to it should never block). Unfortunately, the API is sync and all calls into it block. Therefore, all the parallelism in the previous code accounted for nothing; The actual update ran completely sequentially. The new version uses a local thread pool to avoid blocking the tokio runtime and as such achieves higher speed. Unfortunately, because the rustpython implementation is way slower than cpython, the whole update takes longer. But that is a problem for another day.
Diffstat (limited to 'crates/fmt')
0 files changed, 0 insertions, 0 deletions