[project @ 2001-09-17 16:21:41 by simonmar]
authorsimonmar <unknown>
Mon, 17 Sep 2001 16:21:41 +0000 (16:21 +0000)
committersimonmar <unknown>
Mon, 17 Sep 2001 16:21:41 +0000 (16:21 +0000)
commit14856043fddcf8f30660ddf34f16795eb38f7299
treec5eb890bbb90d8e5f163ec855dbbf56069a66b34
parenta3b0f2a6a69a5f439cae2b395d5e96db52acf67a
[project @ 2001-09-17 16:21:41 by simonmar]
Subvert GHC's full-laziness optimisation by explicitly lambda-lifting
a local lambda expression to the top level, and exporting it to ensure
it doesn't get inlined.  Without this hack, full-laziness will float
out several subexpressions, which turns out to be a pessimisation in
this case.

This is worth about 20% in hPutStr performance, so we now beat the old
I/O library on 'cat' ;-)

I'd like to MERGE TO STABLE this, but 5.02 is imminent so it might
have to wait until 5.02.1.
ghc/lib/std/PrelIO.hsc