On Tue, May 29, 2007 at 02:42:22PM -0700, Scott Dillard wrote:
> You're right. I broke them when experimenting to see where the cycles
> were going. I've fixed them, but the other pair of functions, named
> gaussElim2, were correct and the issue remains that unsafeRead appears
> slower than readArray.

Separating the functions into different executables and compiling with
GHC 6.6 without profiling, the unsafe one is definitely faster:

./safe  45.73s user 0.06s system 96% cpu 47.238 total
./unsafe  6.65s user 0.02s system 91% cpu 7.295 total


Thanks
Ian

_______________________________________________
Glasgow-haskell-users mailing list
Glasgow-haskell-users@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users

Reply via email to