You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
gopls/internal/lsp/filecache: touch only files older than 1h
This change implements an optimization similar to one
in the go command's cache: we skip the chtimes(2) call
to update the file access times unless it would change
by at least one hour. This avoids turning every read
into a write.
It makes quite a difference to the Get benchmark:
330MB/s before, 430MB/s after.
Change-Id: I5b5b6e99a1968c73bf1032b410bec989961c4a90
Reviewed-on: https://go-review.googlesource.com/c/tools/+/496438
Reviewed-by: Robert Findley <[email protected]>
Run-TryBot: Alan Donovan <[email protected]>
TryBot-Result: Gopher Robot <[email protected]>
gopls-CI: kokoro <[email protected]>
0 commit comments