-
Notifications
You must be signed in to change notification settings - Fork 17.9k
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
cmd/compile: compile time takes far longer with Go 1.7.5 than three prior Go releases #19096
Comments
If |
Thanks! I'll put this in my queue to investigate; on my phone now. Could definitely be the large switch, that's a known source of some problems. (Might also try tip—there's at least one optimization in there to help with similar code.) |
The slow package is actually |
Btw, the easiest way to see what the slow package is is to run:
Here's the non-stdlib part of the output from that:
|
@josharian thank you for the tip! I was not aware it was possible to get that kind of information. |
No prob. Please keep filing issues about packages that are unusually slow to compile. They're very helpful in flushing out and fixing performance bugs. |
What version of Go are you using (
go version
)?go version go1.7.5 linux/amd64
What operating system and processor architecture are you using (
go env
)?Arch Linux
What did you do?
What did you expect to see?
I expected Go 1.7 and 1.8 to be at least as fast as previous versions or maybe a little slower.
What did you see instead?
Go 1.7.5 took significantly longer to compile than three previous versions, and Go 1.8rc3 took 3x as long as 1.4.3, 1.5.4, and 1.6.4.
The text was updated successfully, but these errors were encountered: