-
Notifications
You must be signed in to change notification settings - Fork 6.8k
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(tooltip): memory leak in _setTooltipMessage #6782
Conversation
@andrewseguin should we revisit this? |
Yup - this still is valid I believe, since the subscription is not always unsubscribed We now have four subscriptions in tooltip. I think we can benefit from an |
@andrewseguin @jelbourn In my case I have a requirement to display table with tooltips in cells. With this amount of tooltips multiplied by size of data in memory we generate a huge leak. So yes this is still valid :) Anyway I agree this was my first quick draft. Do you want me to implement it differently? Or at least rebase this branch? |
Updating this to use |
An example of what Jeremy was pointing out can be found here: https://github.com/angular/material2/blob/40a507043a47861d1d0f66dc5eb7591d762b089b/src/lib/sidenav/drawer.ts#L495 |
@jelbourn @andrewseguin I've implemented the fix using |
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.
LGTM
@Eddman please rebase |
@mmalerba Done. |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
The subscription to this._ngZone.onMicrotaskEmpty is causing memory leaks: