[Haskell-cafe] Performance Issue

Serguey Zefirov sergueyz at gmail.com
Tue May 18 12:45:38 EDT 2010


2010/5/18 Richard Warburton <richard.warburton at gmail.com>:
>> GHC performs almost no common subexpression elimination, the reasons being
>> that it can introduce space leaks and undesired extra laziness.
> Is there any way to encourage it to do so, for example compilation
> flags?  Or is it generally best to hand apply these kind of
> optimisations.

I think that handmade common expression elimination improves overall
quality of code. ;)

(as it amounts to refactoring it)


More information about the Haskell-Cafe mailing list