* perf(asr): cpu_threads on CPU and batched faster-whisper decode on CUDA with sequential fallback
* perf(dub): one-pass audio extraction and scene detection overlapped with Demucs on GPU hosts
* perf(dub): save the initial ingest job off the event loop, tombstone invariant intact
* perf(longform): skip fsync for per-span cache WAVs; torn files are re-rendered
* perf(dub): history list omits job_data (?full=1 restores it); holder scan runs in SQL
* perf(translate): load NLLB in fp16 on CUDA with float32 fallback
* docs(performance): NLLB fp16 and batched Faster-Whisper switches
* test(asr): accept cpu_threads kwarg in the load fake
* test(asr): expect cpu_threads in the HIP CPU-load assertions
* docs(changelog): perf batch fragment (#4323)
* fix(perf): address review findings, restore durable segment cache, regenerate CLI contract
* test(dub): use explicit checkpoints in the save-cancellation test
* fix(perf): opt-in batched ASR, NLLB model lock and clean reload, await scene task on cancel
* docs(performance): batched Whisper is opt-in; update changelog fragment
* fix(perf): unload NLLB off the event loop, CPU placement cleanup, state holder, deterministic tests
* test(translate): prove the NLLB unload waits off the event loop
Adds a content-addressed segment cache (segment_cache_key + SegmentCache,
cache_dir/segments/) under the existing chapter cache: a changed chapter now
reuses every untouched span's WAV and synthesizes only the edited/missing
ones, and an interrupted chapter render resumes from the segments that already
finished (each persists the moment it renders). The chapter key derivation is
unchanged so on-disk caches from released versions keep hitting, a fully-
unchanged chapter never touches segment files, and prune_cache_dir now walks
both layers so one byte cap bounds the whole cache. Chapter SSE events gain
additive segments/cached_segments counts.
Co-authored-by: mergetest <test@local>
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>