----- Original Message -----
From: Ch. A. Herrmann <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, March 20, 2000 7:23 PM
Subject: RE: speed of compiled Haskell code.


> Hi,
>
>     Jan> Haskell code optimised by strictnes annotions in functions or
>     Jan> in datastructures are ? times slower than C.
>
>     Jan> Please correct me where I am wrong and fill in the required
>     Jan> number for the ?  sign above
>
> I cannot give you a number, but I like to report about some
> experience we made in our programming project. We used lists to
> store a symbol table for a compiler. Later, we felt the need to
> switch to AVL trees and so we did. As the programs got bigger
> we discovered that our program used more than 200MB heap and
> became very slow. After we made the insert operation in the
> AVL tree hyperstrict and a few similar changes, our
> program behaved very well and is surely faster than
> if written in C using naive data structures and algorithms.
> We used combinators like
>    strict2 f x y = strict (strict f x) y
> to achieve a simple code.

I find this interesting. It would be nice if you would like to explain me
what you mean by " hyperstrict"

Friendly

Jan Brosius


>
>
> Cheers
> --
>  Christoph Herrmann
>  E-mail:  [EMAIL PROTECTED]
>  WWW:     http://brahms.fmi.uni-passau.de/cl/staff/herrmann.html
>
>


Reply via email to