Haskell performance

Simon Marlow simonmar at microsoft.com
Thu Mar 18 14:10:10 EST 2004


 
> For now, I assume that Haskell is very expressive, but has 
> the speed of most interpreted language,

GHC is a *lot* faster than most interpreted languages :-P

Usual caveats, and large handfuls of salt apply.

Simon's cheat sheet for getting fast Haskell code:

Rule 1: don't use String I/O.

Rule 2: Profile your program.  Find the inner loop.  Look for overloading.  Squash.  Repeat.  Look for laziness.  Squash.  Repeat.  

Cheers,
	Simon


More information about the Glasgow-haskell-users mailing list