Files
hyperframes/packages/engine/src
Michael Wang f43c35c21d fix(engine): read playlists in linear time and bound the whole walk (#8653)
* fix(engine): read playlists in linear time and bound the whole walk

The trailing-blank trim and the ffconcat file pattern backtracked, so one very long line took
quadratic time on the event loop. Both are now single scans. A line longer than ffmpeg reads
(4095 bytes) refuses the list before it is parsed, and the walk refuses past 16 MiB of list
text or 50,000 entries across all nested lists.

* test(engine): playlist walks finish in milliseconds and stop at their budget

Covers a single 8 MiB line in both list shapes, the 4095-byte line limit, ffconcat file lines
read as before, and the entry and byte budgets across nested lists.

* refactor(engine): keep the playlist parser at its comment share
2026-11-24 08:27:19 +00:00
..