cvs commit: fptools/libraries/base/Foreign/C String.hs

Simon Marlow simonmar@glass.cse.ogi.edu
Tue, 28 Jan 2003 03:09:42 -0800


simonmar    2003/01/28 03:09:42 PST

  Modified files:
    libraries/base/Foreign/C String.hs 
  Log:
  Provide hand-optimised versions of all the functions herein, protected
  by #ifdef __GLASGOW_HASKELL__.
  
  In a quick test, withCString is at least 5 times faster than before.
  
  This isn't really the right way to do it: we should get deforestation
  working between the various component functions and let GHC do its
  stuff, but I couldn't quite get that to work.
  
  Revision  Changes    Path
  1.10      +69 -2     fptools/libraries/base/Foreign/C/String.hs