#2284: Stack-hack optimization causes much re-computation in GUI callbacks
---------------------------------+------------------------------------------
Reporter: sedillard | Owner:
Type: bug | Status: new
Priority: normal | Milestone: _|_
Component: Compiler | Version: 6.8.2
Severity: normal | Resolution:
Keywords: | Difficulty: Unknown
Testcase: | Os: Unknown/Multiple
Architecture: Unknown/Multiple |
---------------------------------+------------------------------------------
Changes (by JulesBean):
* cc: JulesBean (added)
Comment:
I have a duplicate of this bug. I have code which does something like:
{{{
params <- actionToGetParams
let structure = veryExpensivePureOperation params
displayCallback $= (display structure)
}}}
and it is easily observed that structure is being recomputed every time
the callback is called.
In fact, -fno-state-hack speeds up my program from 110fps to 400fps, a
substantial improvement.
Count this as a vote for a solution to this bug...
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/2284#comment:7>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs