1
0
mirror of https://github.com/golang/go synced 2024-11-18 23:14:43 -07:00
go/internal/lsp/cache
Rebecca Stambler b53505e708 internal/lsp: cache analysis using memoize package
This change moves to the approach of caching the analysis using the
memoize package. This means that we will do less work, as we no longer
need to recompute results that are unchanged. The cache key for an
analysis is simply the key of the CheckPackageHandle, along with the
name of the analyzer.

Change-Id: I0e589ccf088ff1de5670401b7207ffa77a254ceb
Reviewed-on: https://go-review.googlesource.com/c/tools/+/200817
Run-TryBot: Rebecca Stambler <rstambler@golang.org>
Reviewed-by: Ian Cottrell <iancottrell@google.com>
2019-10-14 17:19:42 +00:00
..
analysis.go internal/lsp: cache analysis using memoize package 2019-10-14 17:19:42 +00:00
builtin.go internal/lsp: address staticcheck warnings 2019-10-04 02:16:23 +00:00
cache.go internal/lsp: use options hooks to install diff driver 2019-10-11 16:38:31 +00:00
check.go internal/lsp: cache analysis using memoize package 2019-10-14 17:19:42 +00:00
external.go internal/lsp: address staticcheck warnings 2019-10-04 02:16:23 +00:00
file.go internal/lsp: rework snapshots and cache FileHandles per-snapshot 2019-10-01 16:26:22 +00:00
gofile.go internal/lsp: return an error from {Narrowest,Widest}CheckPackageHandle 2019-10-11 16:51:06 +00:00
load.go internal/lsp: use dependencies in cache keys 2019-10-04 02:16:33 +00:00
parse.go internal/lsp: use dependencies in cache keys 2019-10-04 02:16:33 +00:00
pkg.go internal/lsp: cache analysis using memoize package 2019-10-14 17:19:42 +00:00
session.go internal/lsp: use options hooks to install diff driver 2019-10-11 16:38:31 +00:00
snapshot.go internal/lsp: cache analysis using memoize package 2019-10-14 17:19:42 +00:00
view.go internal/lsp: include context in go/packages config 2019-10-11 19:56:53 +00:00
watcher.go internal/lsp: fix deadlocks loading lots of files at once 2019-07-03 17:22:52 +00:00