GHC issueshttps://gitlab.haskell.org/ghc/ghc/-/issues2019-07-07T19:01:38Zhttps://gitlab.haskell.org/ghc/ghc/-/issues/3897reading a large String as Double takes too long2019-07-07T19:01:38ZChristian Maederreading a large String as Double takes too long```
Prelude> :set +s
Prelude> read "1e1000000" :: Double
Infinity
(0.46 secs, 8977756 bytes)
Prelude> read "1e1000000000" :: Double
```
The final call takes up all memory and does not terminate
<details><summary>Trac metadata</summary>...```
Prelude> :set +s
Prelude> read "1e1000000" :: Double
Infinity
(0.46 secs, 8977756 bytes)
Prelude> read "1e1000000000" :: Double
```
The final call takes up all memory and does not terminate
<details><summary>Trac metadata</summary>
| Trac field | Value |
| ---------------------- | ------------------ |
| Version | 6.12.1 |
| Type | Bug |
| TypeOfFailure | RuntimePerformance |
| Priority | normal |
| Resolution | Unresolved |
| Component | Prelude |
| Test case | |
| Differential revisions | |
| BlockedBy | |
| Related | |
| Blocking | |
| CC | |
| Operating system | Linux |
| Architecture | x86 |
</details>
<!-- {"blocked_by":[],"summary":"reading a large String as Double takes too long","status":"New","operating_system":"Linux","component":"Prelude","related":[],"milestone":"","resolution":"Unresolved","owner":{"tag":"Unowned"},"version":"6.12.1","keywords":[],"differentials":[],"test_case":"","architecture":"x86","cc":[""],"type":"Bug","description":"{{{\r\nPrelude> :set +s\r\nPrelude> read \"1e1000000\" :: Double\r\nInfinity\r\n(0.46 secs, 8977756 bytes)\r\nPrelude> read \"1e1000000000\" :: Double\r\n}}}\r\n\r\nThe final call takes up all memory and does not terminate","type_of_failure":"RuntimePerformance","blocking":[]} -->7.4.2