You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Compilation not terminating due to giant .dump-hi (4gb) file when using type families #4541
Could I PR stack to directly read the binary format ? (this would improve compilation performance a lot, relying only on the GHC .hi file). I've already an implementation that can read the dependencies/templatehaskell in the .hi file for ghc7-863. The drawback would be that we would have to support the protocol for each new release of GHC.
Could we have an option to avoid the dump ?
Current solution:
Use the -fomit-interface-pragmas that avoid ALL unfolding. This is not very good because we lose inlining.
This seems like a really good idea, in favor of merging #4545 once it's been reviewed. I think this should make it so that ghc doesn't need to pass -ddump-hi -ddump-to-file. In some cases it can be rather puzzling to users when various ddump options aren't displayed
Activity
mihaimaruseac commentedon Jan 25, 2019
I think adding a flag to avoid the dump or to make the dump use the binary format instead of the plaintext one would be the best.
mgsloan commentedon Jan 28, 2019
This seems like a really good idea, in favor of merging #4545 once it's been reviewed. I think this should make it so that ghc doesn't need to pass
-ddump-hi -ddump-to-file. In some cases it can be rather puzzling to users when various ddump options aren't displayed