mirror of
https://github.com/Wei-Shaw/sub2api.git
synced 2026-12-06 00:05:30 +00:00
Retaining a turn can need more budget than the turn held because the replay and failover sequences get separate header arrays. When that growth does not fit, drop the history instead of keeping it under-accounted. Count a shared body only when both pointer and length match, and skip the common prefix by index so the lookup set covers only the diverging tail.