mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-09-03 04:38:33 +00:00
Both identities looped over every OTHER group/block to force its opacity to 0 at each group's own start time, in addition to each group already setting its own opacity to 0 at its own end. Since groups/blocks occupy non-overlapping time windows and already own their full opacity lifecycle, that loop was dead weight — but it made timeline construction O(n^2) in the number of groups/blocks. Under the Task 7 stress transcript (long, frequent "emphasis" words forcing near single-word blocks/groups), n reached ~2000 and the page hung well past a 30s test timeout for both identities. Verified behavior-preserving: full templates.test.ts (41 tests, incl. opacity/seek assertions) and the new limits.test.ts stress suite pass against both identities after the removal.