-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
internal/lsp/cache: improve snapshot clone perfomance
The existing implementation uses a lot of URI.Filename() calls, which are pretty expensive. Moreover, these calls are not necessary, as long as all the actions could be done with the raw URI string. This patch removes such calls and uses simple string casts. Updates golang/go#45686
- Loading branch information
1 parent
f946a15
commit 41b758d
Showing
2 changed files
with
4 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters