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

Reduce memory when keeping track of debug frames #653

Open
pdawyndt opened this issue Mar 9, 2024 · 0 comments
Open

Reduce memory when keeping track of debug frames #653

pdawyndt opened this issue Mar 9, 2024 · 0 comments

Comments

@pdawyndt
Copy link
Contributor

pdawyndt commented Mar 9, 2024

Many debug frames contain the same objects. When these objects are large data structures, repeatedly storing these objects may take a lot of memory, which seems to drastically slow down the debugger. We might use memory in a more conserved way by storing references to objects in the debug frames, and making sure that objects that have not been modified are only stored once (similar to how GitHub stores object references). This may not only reduce the memory footprint, but also speed up the debugger.

Example of a slow debug session: https://dodona.be/en/courses/3355/series/36011/activities/413135075/ (try debugging a test for the function encode).

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

No branches or pull requests

1 participant