← all posts site ↗

aiostreams RD + TorBox performance tuning

had both Real-Debrid and TorBox subscriptions. streams loaded painfully slow — 20-30s to enumerate results, then another 10-15s to actually buffer the video. even popular shows like The Office took forever.

after digging into aiostreams config options and community presets, here's what actually moved the needle. service priority: reordered debrid priority in aiostreams' Services tab to put Real-Debrid first, TorBox second. RD has better cache rates for mainstream content while TorBox excels at rare torrents and usenet. putting RD first means aiostreams stops searching once RD returns a cached result. also set per-service timeout to 8s (default is 15-30s). 8s is the sweet spot — enough time for RD to respond but cuts off slow scrapers before they drag down the whole query.

result limiting: installed the Tamtaro Complete SEL Setup template which applies Standard SEL core filtering. keeps only top 3 streams per quality/resolution combo (~20 total results instead of 100+). this is the single biggest speed improvement. fewer results means faster enumeration and faster UI rendering. the template also includes Smart Expression Lists (SELs) — synced regex filters that exclude low-quality releases, non-matching titles, and junk torrents automatically.

cache-aware filtering: under the Cache filter section, enabled "exclude uncached streams" for both RD and TorBox. this is the nuclear option — instant playback guaranteed because debrid has the file pre-downloaded, but you'll miss fresh torrents. kept this ON for TV shows, OFF for movies. set apply mode to OR (exclude if uncached on any of the excluded services). with AND, a stream would need to be uncached on both RD and TorBox to get filtered out, which defeats the purpose.

max results per addon: disabled all built-in P2P/indexer addons in the Resources tab, kept only debrid integrations active. the built-in addons were running in parallel with debrid and adding 5-10s of useless scraping time. 95% of requests are satisfied by debrid alone, so the rest is just noise.

result: stream enumeration dropped from 25s to 3s. video start time from 15s to nearly instant (when cached). the standard SEL template auto-updates via synced URLs from github, so filter rules improve over time without manual tweaking.