commit | 15eebf7e827fba65297bc7cc502b8541d53aeb6d | [log] [tgz] |
---|---|---|
author | Rob Findley <rfindley@google.com> | Fri Jul 30 15:11:53 2021 -0400 |
committer | Robert Findley <rfindley@google.com> | Mon Aug 09 20:21:00 2021 +0000 |
tree | 7f1b1eedfe0fa2dabdc4aaab3c6ef0b9f38e50d4 | |
parent | 0d28b7d7c5d3e92e5d8a41c9b40ececd7e81ab9f [diff] |
internal/lsp: update the fuzzy matcher to operate on chunks We can avoid allocating strings when performing workspace symbol search by having the fuzzy match operate directly on chunks. When operating on a single string, this slows down the matcher slightly (perhaps 10%) due to copying bytes rather than accessing the string directly. We could work around this using unsafe, but this could also be mitigated by generics. Benchmark ("test" in x/tools): 48ms->46ms Benchmark ("test" in kubernetes): 868ms->857ms Change-Id: Icf0f15aaa5cc3c875cf157a7b90db801045d9ed4 Reviewed-on: https://go-review.googlesource.com/c/tools/+/338694 Trust: Robert Findley <rfindley@google.com> Run-TryBot: Robert Findley <rfindley@google.com> gopls-CI: kokoro <noreply+kokoro@google.com> 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.