[GHC] #14254: The Binary instance for TypeRep smells a bit expensive
GHC
ghc-devs at haskell.org
Wed Sep 20 06:39:32 UTC 2017
#14254: The Binary instance for TypeRep smells a bit expensive
-------------------------------------+-------------------------------------
Reporter: dfeuer | Owner: (none)
Type: bug | Status: patch
Priority: normal | Milestone: 8.4.1
Component: Compiler | Version: 8.2.1
Resolution: | Keywords: Typeable
Operating System: Unknown/Multiple | Architecture:
Type of failure: Compile-time | Unknown/Multiple
performance bug | Test Case:
Blocked By: | Blocking:
Related Tickets: | Differential Rev(s): Phab:D3998
Wiki Page: |
-------------------------------------+-------------------------------------
Comment (by dfeuer):
I have the feeling that `typeRepKind` is just too expensive, considering
that it has to be called for `dynApply`, `funResultTy`, and
deserialization. Just how bad would it be to expand the `TrApp` and
`TrFun` constructors just enough to fit the result kind? Alternatively,
would it make sense to add the kind representation to `Dynamic` and to the
constraints on `funResultTy` and deserialization?
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/14254#comment:4>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list