Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Improve performance of multi-period DASH parsing (#5350)
For manifests with many streams, we saw the bulk of the manifest parse time going towards period combiner. Specifically: splitting codecs and comparing DRMs. This change cuts our manifest parse time for large manifests by nearly 30%. There are two changes: 1. Memoize the normalized codecs inside the period combiner. 2. Short circuit the DRM compatibility check if the DRMInfos arrays are the same object. We run a custom manifest parser and are therefore able to re-use the same drm infos array for functionally equivalent drms, but short circuiting also helps since in the case that the upstream period combiner is comparing a candidate stream with itself.
- Loading branch information