Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
gopls/internal/lsp/cache: don't trace a region for MetadataForFile
In the common case, MetadataForFile is just a map lookup. Benchmarks demonstrate that capturing a trace region is too expensive. Change-Id: I02d2b65de88f5db37beb16fba034e3c49c5f6096 Reviewed-on: https://go-review.googlesource.com/c/tools/+/481785 TryBot-Result: Gopher Robot <gobot@golang.org> Reviewed-by: Alan Donovan <adonovan@google.com> Run-TryBot: Robert Findley <rfindley@google.com> gopls-CI: kokoro <noreply+kokoro@google.com>
- Loading branch information