-
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: large, simple array 75x slower to compile with -race #57657
Comments
It seems to me that
|
This comment was marked as duplicate.
This comment was marked as duplicate.
Change https://go.dev/cl/461142 mentions this issue: |
Ops @gopherbot, why did you post two comments 😃 |
Looks like the quadratic behavior is in
That's called from Probably there is a better way to get from SelectN(0) to SelectN(1). |
Change https://go.dev/cl/461080 mentions this issue: |
Compile this file with and without
-race
:https://gist.githubusercontent.com/josharian/7e19da2d4c68d004ffebf510aeb8ef69/raw/5c475f906ce7a515d45d8bb5ae5c701469682b8a/x.go
On my laptop, it compiles without -race in 1.5s. With -race, it takes over 100s.
This is extracted and simplified from real code that was causing repeated CI build timeouts, meaning it was taking upwards of 10 minutes to build on a slow CI machine.
Reproduced with both 1.19.4 and 1.20rc2.
I haven't investigated at all.
The text was updated successfully, but these errors were encountered: