Re: -O/-O2 causes program to run too slow

2014-12-10 Thread David Spies
> > > Simon > > > > *From:* ghc-devs [mailto:ghc-devs-boun...@haskell.org] *On Behalf Of *David > Spies > *Sent:* 07 December 2014 19:44 > *To:* ghc-devs@haskell.org > *Subject:* Re: -O/-O2 causes program to run too slow > > > > Ok, so I found that it wa

RE: -O/-O2 causes program to run too slow

2014-12-10 Thread Simon Peyton Jones
Sent: 07 December 2014 19:44 To: ghc-devs@haskell.org Subject: Re: -O/-O2 causes program to run too slow Ok, so I found that it was an instance of this: https://ghc.haskell.org/trac/ghc/ticket/1168 and I read through this whole thread: https://www.haskell.org/pipermail/glasgow-haskell-users/2008

Re: -O/-O2 causes program to run too slow

2014-12-08 Thread Jan Stolarek
While I don't know how to help with your problem I encourage you to attach your code example to #1168. This will certainly be helpful in working on that bug. Janek Dnia niedziela, 7 grudnia 2014, David Spies napisaƂ: > Ok, so I found that it was an instance of this: > https://ghc.haskell.org/tr

Re: -O/-O2 causes program to run too slow

2014-12-07 Thread David Spies
Ok, so I found that it was an instance of this: https://ghc.haskell.org/trac/ghc/ticket/1168 and I read through this whole thread: https://www.haskell.org/pipermail/glasgow-haskell-users/2008-February/014259.html I don't understand the state-hack optimization. It's clearly not safe and I'm not co