You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Smten compilation times can be a bit slow, especially when compiling things like happy generated grammars. Is there anything we can do to improve these compile times?
The text was updated successfully, but these errors were encountered:
I switched to using wl-pprint-text for the pretty printer, which seems to speed things up a bit. Now the problem seems to be less pretty printing performance, and more overall size of the generated output.
Some ideas for how to improve things:
don't fully qualify every name!
do (\a b -> ...), instead of (\a -> (\b -> ...))
do (a, b), instead of ((,) a b) for types, patterns, and expressions
I tried everything listed above except for avoiding unnecessary types. Using shorter qualified names made the biggest difference: 16s reduced to 14.4s. Now pretty printing is certainly not the bottleneck.
Most time now seems to be spent in:
Doing the core translation
ghc type checking, simplification, and code generation for the generated code.
The Smten compilation times can be a bit slow, especially when compiling things like happy generated grammars. Is there anything we can do to improve these compile times?
The text was updated successfully, but these errors were encountered: