[cvs-nhc98] Hat: achieve a 30-40% speed-up in running traced programs.

Malcolm Wallace malcolm@sparud.net
Sun, 25 Mar 2001 20:34:54 +0200 (CEST)


malcolm: Sun Mar 25 20:34:54 CEST 2001

Update of /usr/src/master/nhc/src/prelude/PreludeDebug
In directory hinken:/tmp/cvs-serv591/src/prelude/PreludeDebug

Modified Files:
	HatArchive.hs Makefile PreludeDebug.hs 
Log Message:
Hat: achieve a 30-40% speed-up in running traced programs.
  This improvement is mainly due to moving work from Haskell to C.
  We were already storing certain triples of trace information
  (file ptr, trustedness, hiddenness) as a C struct, but continuing
  to use trivial access/construction functions in Haskell.  Here, we
  remove all uses of the triples to C, and use only higher-level calls
  in Haskell.
  As a biproduct, the change of type from data Trace to newtype Trace
  must be rippled through all of the standard .T.hi files.