Files
shaka-player/lib/dash
Ivan 3a5d588dbd perf(DASH): drop array operations on unique IDs when parsing periods (#9870)
Two targeted performance improvements in aimed at reducing overhead on
older devices

1. Avoid intermediate array for representation ID uniqueness check

Previously, all representation IDs were pushed into a temporary ids[]
array, then a Set - this PR eliminates the array allocation entirely.

2. Re-parse only affected AdaptationSets for dependency streams

Previously, when any stream had a dependency stream, every AdaptationSet
was re-parsed from XML. Now, only the specific AdaptationSet nodes that
contain streams with dependencies are re-parsed. This avoids redundant
XML traversal and parsing for the common case where most adaptation sets
have no dependency streams.
2026-03-23 10:09:42 +01:00
..