
#10858: Smaller generated Ord instances -------------------------------------+------------------------------------- Reporter: nomeata | Owner: Type: task | Status: new Priority: normal | Milestone: Component: Compiler | Version: 7.10.2 Resolution: | Keywords: deriving-perf Operating System: Unknown/Multiple | Architecture: Type of failure: Compile-time | Unknown/Multiple performance bug | Test Case: Blocked By: | Blocking: Related Tickets: #9557 | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by nomeata): It’s been a while, so I’m not sure. From a quick reading, I think the rationale is: For large product types, the chain of `compare` calls can be implemented with less code using `thenCmp`. Also for large product types, the default implementations of `(<)` etc. should be good enough. One question is what “large” means here. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10858#comment:15 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler