Commit dd228b6e authored by Simon Peyton Jones's avatar Simon Peyton Jones
Browse files

Add comments on DmdAnal space leak fix

parent c600f3ce
......@@ -90,6 +90,9 @@ evaluated everywhere that we produce it, so we just run a single
seqBinds over the output before returning it, to ensure that there are
no references holding on to the input Core program.
This makes a ~30% reduction in peak memory usage when compiling
DynFlags (cf Trac #9675 and #13426).
This is particularly important when we are doing late demand analysis,
since we don't do a seqBinds at any point thereafter. Hence code
generation would hold on to an extra copy of the Core program, via
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment