
19 May
2006
19 May
'06
1:04 p.m.
Shin-Cheng Mu
I was wondering where the space leak came from and suspected that it's the leak described in one of Philip Wadler's early paper Fixing Some Space Leaks With a Garbage Collector (1987).
But since Wadler has addressed this problem a long time ago, I think the fix he proposed should have been implemented in GHC already. Was that really the source of the space leak? If so is there a way to fix it? Or is there another reason for the leak?
I compiled and profiled your code using nhc98 instead of ghc. There was no space leak visible. Since nhc98 does implement the Wadler GC fix (with refinements by Sparud), I can only assume that this does indeed account for the space improvement over ghc. Regards, Malcolm