On 12 Jun 2012, at 12:52, Dmitry Dzhus <d...@dzhus.org> wrote: > 12.06.2012, 01:08, "Roman Leshchinskiy" <r...@cse.unsw.edu.au>: > >> perhaps the state hack is getting in the way. > > I don't quite understand the internals of this yet, but `-fno-state-hack` > leads to great performance in both cases! > How safe is that?
It doesn't change the semantics of your program but it can make it significantly slower (or faster, as in this case). The various state hack related tickets on trac might give you an idea of what is happening here. We really need some proper arity analysis! Roman _______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe