-
Notifications
You must be signed in to change notification settings - Fork 18k
cmd/go/internal/mvs: Delete redundant searching for maximum version when building minimal requirement list #50345
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
Conversation
|
This PR (HEAD: 1716a25) has been imported to Gerrit for code review. Please visit https://go-review.googlesource.com/c/go/+/374277 to see it. Tip: You can toggle comments from me using the |
|
Message from Gopher Robot: Patch Set 1: Congratulations on opening your first change. Thank you for your contribution! Next steps: Most changes in the Go project go through a few rounds of revision. This can be During May-July and Nov-Jan the Go project is in a code freeze, during which Please don’t reply on this GitHub thread. Visit golang.org/cl/374277. |
|
Message from Bryan Mills: Patch Set 6: Run-TryBot+1 Trust+1 (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/374277. |
|
Message from Gopher Robot: Patch Set 6: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/374277. |
|
Message from Gopher Robot: Patch Set 6: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/374277. |
|
Message from Gopher Robot: Patch Set 6: TryBot-Result-1 (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/374277. |
|
This PR (HEAD: cfa5ec2) has been imported to Gerrit for code review. Please visit https://go-review.googlesource.com/c/go/+/374277 to see it. Tip: You can toggle comments from me using the |
|
Message from lei peng: Patch Set 7: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/374277. |
…in building minimal requirement list
|
This PR (HEAD: fce11d3) has been imported to Gerrit for code review. Please visit https://go-review.googlesource.com/c/go/+/374277 to see it. Tip: You can toggle comments from me using the |
|
Message from lei peng: Patch Set 8: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/374277. |
|
Message from Bryan Mills: Patch Set 8: Run-TryBot+1 Auto-Submit+1 Code-Review+2 Please don’t reply on this GitHub thread. Visit golang.org/cl/374277. |
|
Message from Gopher Robot: Patch Set 8: (2 comments) Please don’t reply on this GitHub thread. Visit golang.org/cl/374277. |
|
Message from Gopher Robot: Patch Set 8: TryBot-Result+1 (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/374277. |
…hen building minimal requirement list mvs.Req performs an unnecessary search for the maximum version when building minimal requirement list. Someone may be confused when reading this piece of code. The comment of the BuildList function also states that the build list contains the maximum version of each module. We just need to create a maximum version cache that maps from path to version, in the beginning of the Req function body. Change-Id: I4b353e167f2dcc96bc13cc2e1c602bce47c72bc9 GitHub-Last-Rev: fce11d3 GitHub-Pull-Request: #50345 Reviewed-on: https://go-review.googlesource.com/c/go/+/374277 Auto-Submit: Bryan Mills <[email protected]> Run-TryBot: Bryan Mills <[email protected]> Reviewed-by: Bryan Mills <[email protected]> TryBot-Result: Gopher Robot <[email protected]> Reviewed-by: Heschi Kreinick <[email protected]>
|
This PR is being closed because golang.org/cl/374277 has been merged. |


mvs.Req performs an unnecessary search for the maximum version when building minimal requirement list. Someone may be confused when reading this piece of code. The comment of the BuildList function also states that the build list contains the maximum version of each module. We just need to create a maximum version cache that maps from path to version, in the beginning of the Req function body.