
18 May
2010
18 May
'10
12:45 p.m.
2010/5/18 Richard Warburton
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)