[project @ 2005-07-26 12:14:03 by simonmar]
authorsimonmar <unknown>
Tue, 26 Jul 2005 12:14:03 +0000 (12:14 +0000)
committersimonmar <unknown>
Tue, 26 Jul 2005 12:14:03 +0000 (12:14 +0000)
commitac88f113abdec1edbffb6d2f97323e81f82908e7
tree09ae70eb8c056a46cbb05e783b0889616b5d87a9
parenta28e9d8435d1a5e8348e90f2772f44b15fcbbb91
[project @ 2005-07-26 12:14:03 by simonmar]
Add a layer of write buffering over Handle when dumping the output:
this saves a lot of time because we're doing a lot of small writes,
and Handle operations have a non-trivial constant overhead due to the
thread-safety, exception-safety etc.

This improvement results in about a 10% reduction in compile time for
non-optimised, somewhat less for optimised compilation.
ghc/compiler/utils/BufWrite.hs [new file with mode: 0644]
ghc/compiler/utils/Pretty.lhs
ghc/compiler/utils/PrimPacked.lhs