reflex-vty
reflex-vty copied to clipboard
Space leaks
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:
- Eliminating the layout manager and combinators makes the leak slower -- which points to the fact there is more than one involved.
- Eliminating the rendering functions altogether (yet retaining the
mainWidgetcall) makes the leak slower futher still. - In any case, commenting out the
threadDelayturns 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.
@deepfire thanks for the report and the repro code. I'll be looking into this!