Improve performance of deriving Show
Significantly improves performance of deriving Show instances by avoiding using the very polymorphic `.` operator in favour of inlining its definition. We were generating tons of applications of it, each which had 3 type arguments! Improves on #9557 ------------------------- Metric Decrease: InstanceMatching T12707 T3294 ------------------------
Showing
- compiler/GHC/Hs/Utils.hs 5 additions, 1 deletioncompiler/GHC/Hs/Utils.hs
- compiler/GHC/Tc/Deriv/Generate.hs 10 additions, 9 deletionscompiler/GHC/Tc/Deriv/Generate.hs
- testsuite/tests/deriving/should_compile/T14682.stderr 7 additions, 6 deletionstestsuite/tests/deriving/should_compile/T14682.stderr
- testsuite/tests/deriving/should_run/T9576.stderr 4 additions, 4 deletionstestsuite/tests/deriving/should_run/T9576.stderr
- testsuite/tests/typecheck/should_fail/T15883d.stderr 5 additions, 5 deletionstestsuite/tests/typecheck/should_fail/T15883d.stderr
Loading
Please register or sign in to comment