-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
internal/lsp/cache: improve snapshot clone perfomance #306
internal/lsp/cache: improve snapshot clone perfomance #306
Conversation
This PR (HEAD: 41b758d) has been imported to Gerrit for code review. Please visit https://go-review.googlesource.com/c/tools/+/312809 to see it. Tip: You can toggle comments from me using the |
Message from Rebecca Stambler: Patch Set 1: Run-TryBot+1 Code-Review+2 Trust+1 Please don’t reply on this GitHub thread. Visit golang.org/cl/312809. |
Message from Go Bot: Patch Set 1: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/312809. |
Message from kokoro: Patch Set 1: Kokoro presubmit build starting for golang/tools/gopls-legacy/presubmit Please don’t reply on this GitHub thread. Visit golang.org/cl/312809. |
Message from Go Bot: Patch Set 1: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/312809. |
Message from Suzy Mueller: Patch Set 1: Trust+1 Please don’t reply on this GitHub thread. Visit golang.org/cl/312809. |
Message from kokoro: Patch Set 1: gopls-CI+1 Kokoro presubmit build finished with status: SUCCESS Please don’t reply on this GitHub thread. Visit golang.org/cl/312809. |
Message from Go Bot: Patch Set 1: TryBot-Result-1 (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/312809. |
The existing implementation uses a lot of URI.Filename() calls, which are pretty expensive. Moreover, these calls are not necessary, as long as all the actions could be done with the raw URI string. This patch removes such calls and uses simple string casts. Updates golang/go#45686
41b758d
to
e6f9892
Compare
This PR (HEAD: e6f9892) has been imported to Gerrit for code review. Please visit https://go-review.googlesource.com/c/tools/+/312809 to see it. Tip: You can toggle comments from me using the |
Message from Anton Kuklin: Patch Set 2: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/312809. |
Message from Rebecca Stambler: Patch Set 2: Run-TryBot+1 Trust+1 Please don’t reply on this GitHub thread. Visit golang.org/cl/312809. |
Message from Go Bot: Patch Set 2: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/312809. |
Message from kokoro: Patch Set 2: Kokoro presubmit build starting for golang/tools/gopls-legacy/presubmit Please don’t reply on this GitHub thread. Visit golang.org/cl/312809. |
Message from kokoro: Patch Set 2: gopls-CI+1 Kokoro presubmit build finished with status: SUCCESS Please don’t reply on this GitHub thread. Visit golang.org/cl/312809. |
Message from Go Bot: Patch Set 2: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/312809. |
Message from Go Bot: Patch Set 2: TryBot-Result-1 (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/312809. |
This PR (HEAD: 27c804c) has been imported to Gerrit for code review. Please visit https://go-review.googlesource.com/c/tools/+/312809 to see it. Tip: You can toggle comments from me using the |
Message from Anton Kuklin: Patch Set 3: (2 comments) Please don’t reply on this GitHub thread. Visit golang.org/cl/312809. |
Message from Robert Findley: Patch Set 3: Run-TryBot+1 Please don’t reply on this GitHub thread. Visit golang.org/cl/312809. |
Message from Go Bot: Patch Set 3: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/312809. |
Message from kokoro: Patch Set 3: Kokoro presubmit build starting for golang/tools/gopls-legacy/presubmit Please don’t reply on this GitHub thread. Visit golang.org/cl/312809. |
Message from kokoro: Patch Set 3: gopls-CI+1 Kokoro presubmit build finished with status: SUCCESS Please don’t reply on this GitHub thread. Visit golang.org/cl/312809. |
Message from Go Bot: Patch Set 3: TryBot-Result+1 (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/312809. |
Message from Robert Findley: Patch Set 3: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/312809. |
This PR (HEAD: 67a3ccd) has been imported to Gerrit for code review. Please visit https://go-review.googlesource.com/c/tools/+/312809 to see it. Tip: You can toggle comments from me using the |
Message from Anton Kuklin: Patch Set 4: (2 comments) Please don’t reply on this GitHub thread. Visit golang.org/cl/312809. |
Message from Rebecca Stambler: Patch Set 4: Run-TryBot+1 Code-Review+2 Trust+1 Please don’t reply on this GitHub thread. Visit golang.org/cl/312809. |
Message from Go Bot: Patch Set 4: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/312809. |
Message from kokoro: Patch Set 4: Kokoro presubmit build starting for golang/tools/gopls-legacy/presubmit Please don’t reply on this GitHub thread. Visit golang.org/cl/312809. |
Message from kokoro: Patch Set 4: gopls-CI+1 Kokoro presubmit build finished with status: SUCCESS Please don’t reply on this GitHub thread. Visit golang.org/cl/312809. |
The existing implementation uses a lot of URI.Filename() calls, which are pretty expensive. Moreover, these calls are not necessary, as long as all the actions could be done with the raw URI string. This patch removes such calls and uses simple string casts. Updates golang/go#45686 Change-Id: Ibe11735969eaf0cfe33024f08418e14bf71e7fc4 GitHub-Last-Rev: 67a3ccd GitHub-Pull-Request: #306 Reviewed-on: https://go-review.googlesource.com/c/tools/+/312809 Reviewed-by: Rebecca Stambler <[email protected]> Trust: Rebecca Stambler <[email protected]> Trust: Suzy Mueller <[email protected]> Run-TryBot: Rebecca Stambler <[email protected]> gopls-CI: kokoro <[email protected]> TryBot-Result: Go Bot <[email protected]>
Message from Go Bot: Patch Set 4: TryBot-Result+1 (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/312809. |
This PR is being closed because golang.org/cl/312809 has been merged. |
The existing implementation uses a lot of URI.Filename() calls,
which are pretty expensive. Moreover, these calls are not necessary,
as long as all the actions could be done with the raw URI string.
This patch removes such calls and uses simple string casts.
Updates golang/go#45686