-
-
Notifications
You must be signed in to change notification settings - Fork 51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add option to disable pretty printing #455
Comments
I haven't looked at that for awhile, but I do recall that pretty printing was expensive. I agree that adding an option to disable it makes sense. It just never occurred to me because I personally need the code to be prettified to debug it. Feel free to submit a PR! |
Would you prefer it on or off by default? |
I'm actually more conflicted about this than I expected to be before writing this out. On one hand, I agree cutting the time in half is a big deal. On the other, I don't want people to open the output with the default settings and go "wow, this can't possibly be any good". What do you think? |
IMO the slowness is a worse look than the unformatted generated code. The code is formatted pretty good anyway---so much so, personally, I'd just strip out the pretty printing altogether. |
Ship it as the default then! |
I was curious if there was any low hanging fruit to speed up the compiler.
I run with the
--instrument
flag and found that almost all the time is in the pretty printing.Would you be open to me adding a flag to turn off pretty printing? Perhaps even disabling by default.
Do you see any other suspicious numbers above that should be looked at?
The text was updated successfully, but these errors were encountered: