[cvs-nhc98] patch applied (hat): Hat: achieve a 30-40% speed-up in running traced programs.

Malcolm Wallace Malcolm.Wallace at cs.york.ac.uk
Tue Oct 10 07:02:30 EDT 2006


Sun Mar 25 10:34:56 PST 2001  malcolm
  * 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.

    M ./src/old/runtime/fileformat.c -318 +326
    M ./src/old/runtime/fileformat.h -98 +100
    M ./src/old/runtime/getconstr.c -42 +27
    M ./src/old/runtime/getconstr.h -6 +6
    M ./src/old/runtime/io.c -6 +15
    M ./src/old/runtime/numeric.c -6 +6
    M ./src/old/runtime/vector.c -9 +13


More information about the Cvs-nhc98 mailing list