Exponential compilation time with RWST & ReaderT stack with `-02`
See the attached file. The compilation time grows exponentially with additional fields in HuteStruct
. Tried with GHC-8.0.1 and quite recent HEAD (8.2)
adding a field doubles the compilation time with -O2
.
- 9: 17s
- 10: 34s
- 11: 83s
on my machine. With
-01
around 3sec, independently of the struct size.
The original issue: https://github.com/yesodweb/yesod/issues/1348
Trac metadata
Trac field | Value |
---|---|
Version | 8.0.1 |
Type | Bug |
TypeOfFailure | OtherFailure |
Priority | normal |
Resolution | Unresolved |
Component | Compiler |
Test case | |
Differential revisions | |
BlockedBy | |
Related | |
Blocking | |
CC | |
Operating system | |
Architecture |