-
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): Improve memory usage with live streams #7039
Conversation
Incremental code coverage: 80.00% |
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.
If I understand correctly, the purpose of this PR is to remove unnecessary cases of copying the mediaTemplate
string to new variables, right? Especially in cases where this copied variable might then get captured by the context of a callback?
Do you think it'd also make sense to get rid of the assignment on line 411, then? And just use the current mediaTemplate variable inside the info
?
That one might not be as important since it'd just be one string captured per call to createStreamInfo
, as opposed to one string captured per call to a frequently-used method like getUris
, admittedly...
Yes that is the purpose, in my tests this reduces memory growth, but it does not eliminate it completely, but it is better than what was before.
In theory in that case it is not necessary, because we do not need to update the manifest to obtain new segments. |
Yes, this was something that we were discussing on #6610. For sure, there was a memory leak on this because the created closure for Thanks @avelad |
Related to #6610