1
0
mirror of https://github.com/golang/go synced 2024-10-01 01:28:32 -06:00
go/internal/lsp/cache
Rebecca Stambler 69e0dcfa11 internal/lsp: cache package metadata to minimize calls to packages.Load
Instead of calling packages.Load on every character change, we reparse
the import declarations of the file and determine if they have
changed. We also introduce a metadata cache that caches the import
graph. This is used in type-checking and only updated on calls to
packages.Load.

Change-Id: I7cb384aba77ef3c1565d3b0db58e6c754d5fed15
Reviewed-on: https://go-review.googlesource.com/c/tools/+/165137
Reviewed-by: Ian Cottrell <iancottrell@google.com>
Run-TryBot: Ian Cottrell <iancottrell@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
2019-03-06 16:29:03 +00:00
..
check.go internal/lsp: cache package metadata to minimize calls to packages.Load 2019-03-06 16:29:03 +00:00
file.go internal/lsp: cache package metadata to minimize calls to packages.Load 2019-03-06 16:29:03 +00:00
view.go internal/lsp: cache package metadata to minimize calls to packages.Load 2019-03-06 16:29:03 +00:00