[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/include
In directory hinken:/tmp/cvs-serv591/include

Modified Files:
	Array.T.hi Char.T.hi Ix.T.hi List.T.hi Maybe.T.hi 
	NonStdTrace.T.hi Numeric.T.hi PackedString.T.hi Prelude.T.hi 
	PreludeBuiltin.T.hi Ratio.T.hi System.T.hi cinterface.h 
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.