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

Fixes major memory leak in component renderer #1136

Merged
merged 4 commits into from
Dec 7, 2024

Conversation

wwwillchen
Copy link
Collaborator

@wwwillchen wwwillchen commented Dec 6, 2024

If you navigate to the same pages over and over again, you can measure an significant increase in JS memory (heap snapshots). The main contributor was that we weren't cleaning up the embedded view refs.

@wwwillchen wwwillchen changed the title Fix mem leak Fixes severe memory leak with component renderer Dec 6, 2024
@wwwillchen wwwillchen changed the title Fixes severe memory leak with component renderer Fixes severe memory leak in component renderer Dec 6, 2024
@wwwillchen wwwillchen changed the title Fixes severe memory leak in component renderer Fixes major memory leak in component renderer Dec 6, 2024
@wwwillchen wwwillchen requested a review from richard-to December 6, 2024 08:16
@wwwillchen wwwillchen marked this pull request as ready for review December 6, 2024 08:16
Copy link
Collaborator

@richard-to richard-to left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM - Great find.

mesop/version.py Outdated Show resolved Hide resolved
@wwwillchen wwwillchen merged commit 453f833 into google:main Dec 7, 2024
6 checks passed
@wwwillchen wwwillchen deleted the fix-mem-leak branch December 7, 2024 00:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants