mirror of
https://github.com/EstrellaXD/Auto_Bangumi.git
synced 2026-05-04 05:34:48 +08:00
- Replace N individual _is_duplicate() calls with single batch SELECT query in add_all() method, reducing database round-trips - Replace O(n*m) nested loop in match_list() with compiled regex alternation pattern for faster torrent-to-bangumi matching - Add LRU cache (512 entries) to torrent_parser() to avoid redundant regex parsing for the same torrent paths - Extend bangumi search_all() cache TTL from 60s to 300s (5 minutes) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>