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

Space leaks #88

Open
deepfire opened this issue Oct 30, 2024 · 1 comment
Open

Space leaks #88

deepfire opened this issue Oct 30, 2024 · 1 comment

Comments

@deepfire
Copy link

I have not diagnosed them in detail, but it seems that there is a family of different space leaks in at least reflex-vty.

The reproduction is at:

https://github.com/deepfire/hasdiff/blob/repro-reflex-vty-leak/hasdiff/app/hasdiff.hs

Observations:

  1. Eliminating the layout manager and combinators makes the leak slower -- which points to the fact there is more than one involved.
  2. Eliminating the rendering functions altogether (yet retaining the mainWidget call) makes the leak slower futher still.
  3. In any case, commenting out the threadDelay turns the program into an instakill memory hog.

NB: you can use nix develop or nix develop .#profiling to enter the reproduction shell. Which runs ghc-9.10.1, btw.

@ali-abrar
Copy link
Member

@deepfire thanks for the report and the repro code. I'll be looking into this!

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

2 participants