cvs commit: fptools/ghc/compiler/utils BufWrite.hs Pretty.lhs PrimPacked.lhs

Simon Marlow simonmar at haskell.org
Tue Jul 26 08:14:04 EDT 2005


simonmar    2005/07/26 05:14:04 PDT

  Modified files:
    ghc/compiler/utils   Pretty.lhs PrimPacked.lhs 
  Added files:
    ghc/compiler/utils   BufWrite.hs 
  Log:
  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.
  
  Revision  Changes    Path
  1.29      +51 -26    fptools/ghc/compiler/utils/Pretty.lhs
  1.31      +1 -1      fptools/ghc/compiler/utils/PrimPacked.lhs


More information about the Cvs-ghc mailing list