-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(DASH): Evict empty indexes in MetaSegmentIndex #7272
Conversation
This is not extensively tested. I plan on doing some more practical testing later, and maybe writing a new unit test. |
Incremental code coverage: 94.12% |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would be good to add some unit test for a new MetaSegmentIndex
method.
const segmentIndex = mediaState.stream.segmentIndex; | ||
if (segmentIndex instanceof shaka.media.MetaSegmentIndex) { | ||
segmentIndex.evictEmpty(); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did you move it here due to performance reasons?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The initial revision of this PR I put together in a hurry before lunch, and didn't get a good chance to test it for more than a minute or two. It turned out the place I was calling evictEmpty originally was just the wrong function, it wasn't being called often enough.
Issue #6239 --------- Co-authored-by: Álvaro Velad Galván <[email protected]>
Issue #6239 --------- Co-authored-by: Álvaro Velad Galván <[email protected]>
Issue #6239 --------- Co-authored-by: Álvaro Velad Galván <[email protected]>
Issue #6239