[Haskell-cafe] Bit streams programs in Haskell

Spencer Janssen spencerjanssen at gmail.com
Mon Mar 27 06:31:37 EST 2006

It seems I have spoken too soon!

> There is one infidelity in my implementation: the program writes the
> output once per iteration, and this IO is included in the measured
> time.
Due to a few changes, this caveat no longer applies.  As a result
Haskell performs just a bit better.  The code is still at
http://cse.unl.edu/~sjanssen/huffman.hs.  The old main is left for
reference, renamed to main'.

Run time (in seconds) for 10 iterations:
    O'Caml: 35.9
    Old Haskell: 25.6
    New Haskell: 8.8

Spencer Janssen

More information about the Haskell-Cafe mailing list