-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
perf: Improve performance of addThumbnailsTrack #6067
Conversation
[uri], [cue.payload])[0]; | ||
let uris = null; | ||
const getUris = () => { | ||
if (uris == null) { |
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.
I understand why not resolving all of the uris at once in a huge thumbnails track might improve performance, but is there a specific reason we want to no longer use shaka.util.ManifestParserUtils.resolveUris
for this? It seems like it'd be a smaller change for getUris to just be something like:
const getUris = () => {
if (uris == null) {
uris = shaka.util.ManifestParserUtils.resolveUris([uri], [cue.playload]);
}
return uris || [];
};
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.
Ok, I’ll change it
Fixes #6065