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

More efficient garbage collection #187

Closed
tbranyen opened this issue May 15, 2020 · 0 comments · Fixed by #192
Closed

More efficient garbage collection #187

tbranyen opened this issue May 15, 2020 · 0 comments · Fixed by #192
Labels
diffhtml Core API idea An idea for the project

Comments

@tbranyen
Copy link
Owner

tbranyen commented May 15, 2020

diffHTML uses a large memory pool for VTrees to ensure efficient diffing. A potential optimization is when and how gc() is called. Currently this method is triggered whenever a transaction completes (rendering finished). For small interactive applications that are re-rendered frequently, it may be smarter to defer and use more of the pool. When dealing with large applications that cannot exceed a certain memory threshold, and may have even reduced the size of the pool, it would be better to sacrifice performance for stability.

@tbranyen tbranyen added the diffhtml Core API label May 31, 2020
@tbranyen tbranyen added the idea An idea for the project label Aug 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
diffhtml Core API idea An idea for the project
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant