--- id: 007-ytdlp-worker-045800 title: Keep one long-lived yt-dlp worker process instead of spawning per call created: 2026-09-29 depends_on: [004-coalesce-stream-resolves-a92d40, 006-innertube-search-48066b] est_files: 5 --- # 007 — Long-lived yt-dlp worker pool ## Objective Every yt-dlp call pays Python start-up + extractor import. Measured 2026-09-29 with yt-dlp 2026.08.19 (same host, same network): | call | per-call spawn | warm worker | |------|----------------|-------------| | `ytsearch5 --flat-playlist` | 2.49 s | 1.32 s | | `-J