[Haskell-cafe] Haskell performance question

Bulat Ziganshin bulat.ziganshin at gmail.com
Fri Nov 9 01:28:33 EST 2007


Hello Dan,

Friday, November 9, 2007, 3:58:42 AM, you wrote:

> HSbase-3.0.0.0.o but I was able to rerun the timings for my code. WIth
> -O2 the run time went from about 1.5s to 0.2s. With unsafeRead and
> unsafeWrite that becomes 0.16s.

cool! seems that small loops now are runs on registers, in 6.6 each
step of such loop was about 50 instructions long, fetching everything
from memory

just for curiosity, can you try to manually unroll loop and see
results?

btw, this still doesn't mean that ghc can be used for
numeric-intensive code - it should be tried on larger code blocks. but
definitely, it's a whole new era in low-level ghc programming


-- 
Best regards,
 Bulat                            mailto:Bulat.Ziganshin at gmail.com



More information about the Haskell-Cafe mailing list