haskell / happy

The Happy parser generator for Haskell
Other
276 stars 85 forks source link

Not-unreasonable grammar takes 17min to compile with GHC2021 #213

Closed remexre closed 2 years ago

remexre commented 2 years ago

This grammar takes just over 17 minutes to compile, most of which appears to be spent in typechecking. It feels possible that the use of PartialTypeSignatures is related, though I'm not particularly sure.

Turning off GHC2021 features and OverloadedStrings, typechecking time is reduced to roughly 8min, which is still really long... (Only removing OverloadedStrings seems to make no difference.)

Ericson2314 commented 2 years ago

I would take this up with GHC. Happy has always generated a lot of not-too-fancy code. GHC ought to be able to consume that quickly.

remexre commented 2 years ago

Taken up with GHC, fixed in GHC 9.2.1.

Ericson2314 commented 2 years ago

Glad to hear it!