mirror of
https://github.com/EstrellaXD/Auto_Bangumi.git
synced 2026-11-06 15:40:01 +08:00
Two things dominated container start: - The LLM SDKs (anthropic + openai + google-genai) imported at module load via parser.analyser/__init__ → llm.py, costing ~0.7s on every boot even though the LLM parser is off by default. Move those three heavy imports into the provider branch of __init__ and each _parse_* method, so they load only when an LLMParser is actually built. Measured: importing parser.analyser drops 782ms → 203ms; none of the SDKs are in sys.modules after the startup import chain. httpx/httpx_socks stay module-level (cheap, and the proxy tests patch them by module path). - entrypoint.sh ran `chown -R /app/data /app/config` unconditionally every start — O(files), which a large poster cache on a NAS turns into the dominant startup cost. Walk the tree only when ownership needs fixing (first run, changed PUID/PGID, or a wrong-owned volume root), tracked by a marker; the legacy bangumi.json migration chowns its one file explicitly so the gate can't miss it. /home/ab (image-internal, tiny) is still chowned every time. Also regenerates the auto-imports dts for onResponseError (exported for the 401 test in the previous commit). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01FAxVyRwrY7z5NotTtgnwVs
Auto_Bangumi_WebUI
使用 Vue3 + TypeScript 构建的 Auto_Bangumi 的 WebUI