Switched JSON serialization to orjson for faster encoding and decoding.
CI / Formatting (push) Failing after 4s
CI / Linting (push) Successful in 4s
CI / Tests (Python 3.12) (push) Successful in 12s
CI / Tests (Python 3.13) (push) Successful in 12s
CI / Tests (Python 3.14) (push) Successful in 10s
CI / Type Checking (push) Successful in 9s
CI / Spelling (push) Successful in 5s
Audit / Dependencies (push) Successful in 7s

This commit is contained in:
2026-04-05 10:19:07 -04:00
parent 2d2214c671
commit 100cbc3bef
8 changed files with 76 additions and 14 deletions
+3 -2
View File
@@ -20,9 +20,10 @@ Serializes ffmpeg/ffprobe execution via semaphores.
from __future__ import annotations
import asyncio
import json
from typing import TYPE_CHECKING
import orjson
if TYPE_CHECKING:
import logging
from pathlib import Path
@@ -230,5 +231,5 @@ class ProcessingManager:
str(file_path),
)
data = json.loads(stdout)
data = orjson.loads(stdout)
return float(data["format"]["duration"])