[GHC] #13059: High memory usage during compilation
GHC
ghc-devs at haskell.org
Tue Feb 14 22:31:28 UTC 2017
#13059: High memory usage during compilation
-------------------------------------+-------------------------------------
Reporter: domenkozar | Owner: (none)
Type: bug | Status: new
Priority: highest | Milestone: 8.2.1
Component: Compiler | Version: 8.0.2-rc2
Resolution: | Keywords: Generics
Operating System: Unknown/Multiple | Architecture: x86_64
Type of failure: Compile-time | (amd64)
performance bug | Test Case:
Blocked By: | Blocking:
Related Tickets: #5642, #11068 | Differential Rev(s):
Wiki Page: |
-------------------------------------+-------------------------------------
Comment (by simonpj):
Interesting! It looks to me as if the new behaviour is more faithfully
following what the user said than the old behaviour. In this case, it is
inlining `$gdm_size Foo $dStoreFoo` at every call of `size` at type `Foo`;
and that's just what you'd expect from an INLINE pragma on the generic
default method of `Store`.
So maybe that was a bug in the old version, now fixed. And indeed,
refraining from inlining the entire body of `size` at every call site
seems like a good thing.
Case closed?
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/13059#comment:22>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list