about summary refs log tree commit diff stats
path: root/crates/yt_dlp/src/logging.rs
diff options
context:
space:
mode:
authorBenedikt Peetz <benedikt.peetz@b-peetz.de>2025-06-15 17:40:55 +0200
committerBenedikt Peetz <benedikt.peetz@b-peetz.de>2025-06-15 17:40:55 +0200
commitab56f2550d5086ccd1c6981b62081b70743a1f2c (patch)
tree780d238487aad6a7f6d917704641f93c1ed3262d /crates/yt_dlp/src/logging.rs
parentfeat(yt/select): Support a directory selection process (diff)
downloadyt-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/yt_dlp/src/logging.rs')
0 files changed, 0 insertions, 0 deletions