commit | 28b26823c858499e041eae34080ec1f8f9c4fbbe | [log] [tgz] |
---|---|---|
author | Rob Findley <rfindley@google.com> | Fri Jul 30 15:34:33 2021 -0400 |
committer | Robert Findley <rfindley@google.com> | Mon Aug 09 20:21:27 2021 +0000 |
tree | 9a99548890c0de912959fcf1f8a46b8a62fa7a24 | |
parent | f35d7dcca5e35a48b8699d32b67caebbc56daa22 [diff] |
internal/lsp/source: don't build low scoring workspace symbols By refactoring the symbol resolution to defer symbol construction until after scoring, we can avoid some unnecessary string allocation. Benchmark (fastfuzzy "test" in x/tools): 21ms->17ms Benchmark (fuzzy "test" in x/tools): 46ms->42ms Benchmark (fastfuzzy "test" in kubernetes): 199ms->183ms Change-Id: I9de72eb203c9971acc1afe89657976ce193b5a5d Reviewed-on: https://go-review.googlesource.com/c/tools/+/338696 Trust: Robert Findley <rfindley@google.com> Run-TryBot: Robert Findley <rfindley@google.com> gopls-CI: kokoro <noreply+kokoro@google.com> TryBot-Result: Go Bot <gobot@golang.org> Reviewed-by: Rebecca Stambler <rstambler@golang.org>
This subrepository holds the source for various packages and tools that support the Go programming language.
Some of the tools, godoc
and vet
for example, are included in binary Go distributions.
Others, including the Go guru
and the test coverage tool, can be fetched with go get
.
Packages include a type-checker for Go and an implementation of the Static Single Assignment form (SSA) representation for Go programs.
The easiest way to install is to run go get -u golang.org/x/tools/...
. You can also manually git clone the repository to $GOPATH/src/golang.org/x/tools
.
This repository uses prettier to format JS and CSS files.
The version of prettier
used is 1.18.2.
It is encouraged that all JS and CSS code be run through this before submitting a change. However, it is not a strict requirement enforced by CI.
This repository uses Gerrit for code changes. To learn how to submit changes to this repository, see https://golang.org/doc/contribute.html.
The main issue tracker for the tools repository is located at https://github.com/golang/go/issues. Prefix your issue with “x/tools/(your subdir):” in the subject line, so it is easy to find.