[GHC] #13002: :set -O does not work in .ghci file

GHC ghc-devs at haskell.org
Thu Dec 28 22:07:56 UTC 2017


#13002: :set -O does not work in .ghci file
-------------------------------------+-------------------------------------
        Reporter:  George            |                Owner:  (none)
            Type:  bug               |               Status:  new
        Priority:  normal            |            Milestone:  8.0.3
       Component:  GHCi              |              Version:  8.0.1
      Resolution:                    |             Keywords:
                                     |  RecompilationCheck
Operating System:  Unknown/Multiple  |         Architecture:
 Type of failure:  Runtime           |  Unknown/Multiple
  performance bug                    |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:                    |  Differential Rev(s):
       Wiki Page:                    |
-------------------------------------+-------------------------------------
Changes (by George):

 * status:  closed => new
 * resolution:  worksforme =>


Comment:

 Thanks for taking the time to investigate, I should have been more
 explicit, the bug is not about the small timing difference; it is about
 the large allocation difference: 8,885,888 bytes vs 98,400 bytes. That is
 not insignficant right?  think it is the difference between fusion
 occurring and not occurring. I agree that the ddump-simpl output seems to
 show that it is not a bug but the allocation difference indicates to me
 that it is not optimizing i.e.doing list fusion. I thought it worth double
 checking.  If you are still not convinced feel free to close and I will
 try to come up with a more robust test case or convince myself that I am
 wrong.

-- 
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/13002#comment:11>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the ghc-tickets mailing list