#4334: Make lines stricter to fix space leak
----------------------------------+-----------------------------------------
Reporter: daniel.is.fischer | Owner:
Type: proposal | Status: patch
Priority: normal | Milestone: Not GHC
Component: libraries/base | Version: 6.12.3
Keywords: lines, space leak | Testcase:
Blockedby: | Difficulty:
Os: Unknown/Multiple | Blocking:
Architecture: Unknown/Multiple | Failure: Other
----------------------------------+-----------------------------------------
Changes (by daniel.is.fischer):
* status: new => patch
Comment:
Discussion thread:
http://haskell.org/pipermail/libraries/2010-September/014420.html
There were some strong reservations about making lines stricter, since
that's against the general spirit of Data.List.[[BR]]
Nevertheless, there was also support for the original proposal.
Further, the point was raised that the proposed fix (which no longer
changes the strictness) may only temporarily work.
Altogether, it didn't come to an entirely clear conclusion, but since the
only point that received real opposition is eliminated, I think we should
apply the patch to (at least for the time being) fix the leak.
I've added a testcase programme, to be compiled with optimisations and
given T4334.in as input, criterion for success is maximum resident memory
less than 100,000 bytes. I don't know how to specify that criterion for
the test driver, otherwise I'd have made a patch for the testsuite myself.
Please review.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/4334#comment:4>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs