[Haskell-cafe] How to improve speed? (MersenneTwister is several
times slower than C version)
Donald Bruce Stewart
dons at cse.unsw.edu.au
Thu Nov 2 06:21:31 EST 2006
> Hello isto,
> Thursday, November 2, 2006, 1:16:55 AM, you wrote:
> > I have tried to do different things but now I'm stuck. unsafeRead
> > and unsafeWrite improved a bit the lazy (STUArray-version) and
> why you think it's a lazy? :) ST monad is just the same as IO monad
> internally, only types are different (there is also Lazy.ST monad -
> this is really lazy)
> 10-20 times difference is typical for GHC programs.
It's really more like 2-4x. Sometimes better than C.
Where's this huge figure coming from Bulat? If you have code that
behaves like this, you should report it.
More information about the Haskell-Cafe