reading 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
Trac metadata
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 |