Performance bug reading large-exponent float without explicit type
$ 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.
Trac metadata
Trac field | Value |
---|---|
Version | 7.10.3 |
Type | Bug |
TypeOfFailure | OtherFailure |
Priority | normal |
Resolution | Unresolved |
Component | Runtime System |
Test case | |
Differential revisions | |
BlockedBy | |
Related | |
Blocking | |
CC | simonmar |
Operating system | |
Architecture |