Skip to content
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

Move event listeners to renderTemplate in disassembly view #129734

Merged
merged 2 commits into from
Aug 2, 2021

Conversation

xisui-MSFT
Copy link
Contributor

This PR fixes #129527

Move event listeners to renderTemplate in disassembly view, to avoid frequently creating and disposing event listeners.

@xisui-MSFT
Copy link
Contributor Author

xisui-MSFT commented Jul 29, 2021

@isidorn I moved all listeners in renderElement to renderTemplate. Now if the screen is very large or the zoom level is very small, there will be only one warning. This is kind of expected, as listeners are only created once for each line in the viewport, but still inevitably there will be one warning when there are too many lines in the viewport. I'm not sure if we can remove this warning?

@isidorn
Copy link
Contributor

isidorn commented Jul 29, 2021

@xisui-MSFT this looks great, but is a bit of a larger change, so I am assigning this to August and I will merge in start of next week.

As for still getting a warning for a large disassembly view, this is fine. Those warning are not 100% correct, and are there to point to potential problems. In this case it is fine.

Thanks 👏

@isidorn isidorn self-assigned this Jul 29, 2021
@isidorn isidorn added this to the August 2021 milestone Jul 29, 2021
@isidorn isidorn merged commit 11d8d95 into microsoft:main Aug 2, 2021
@github-actions github-actions bot locked and limited conversation to collaborators Sep 16, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Potential listener leak detected
2 participants