[GHC] #11989: Performance bug reading large-exponent float without explicit type

GHC ghc-devs at haskell.org
Wed Apr 27 15:27:44 UTC 2016


#11989: Performance bug reading large-exponent float without explicit type
-------------------------------------+-------------------------------------
           Reporter:  bpearlmutter   |             Owner:
               Type:  bug            |            Status:  new
           Priority:  normal         |         Milestone:
          Component:  Runtime        |           Version:  7.10.3
  System                             |
           Keywords:                 |  Operating System:  Linux
       Architecture:  x86_64         |   Type of failure:  Runtime
  (amd64)                            |  performance bug
          Test Case:  1e1000000 ::   |        Blocked By:
  (RealFloat a => a)                 |
           Blocking:                 |   Related Tickets:
Differential Rev(s):                 |         Wiki Page:
-------------------------------------+-------------------------------------
 {{{
 $ time echo '1e700000' | ghci
 GHCi, version 7.10.3: http://www.haskell.org/ghc/  :? for help
 Prelude> Infinity
 Prelude> Leaving GHCi.

 real    1m25.799s
 user    0m20.828s
 sys     0m9.624s

 $ time echo '1e700000::Double' | ghci
 GHCi, version 7.10.3: http://www.haskell.org/ghc/  :? for help
 Prelude> Infinity
 Prelude> Leaving GHCi.

 real    0m0.196s
 user    0m0.120s
 sys     0m0.032s

 $ time echo 1e-800000 | ghci
 GHCi, version 7.10.3: http://www.haskell.org/ghc/  :? for help
 Prelude> Killed

 real    2m8.879s
 user    0m6.684s
 sys     0m10.256s
 }}}
 Giving an explicit type `(RealFloat a => a)` doesn't make any difference.

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


More information about the ghc-tickets mailing list