-
-
Notifications
You must be signed in to change notification settings - Fork 84
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
While working on indexing, I discovered a rather large performance issue. Finding references will return a large number of results in many documents that aren't open. These results return ranges, and those ranges need to be converted into their LSP forms. Under the current architecture, this would result in needing to open up every file that has a result and reading it. This would cause a great deal of I/O whenever find references was used. @zachallaun and I talked about this, and came up with the idea of storing the line record along with each position. This is a small amount of data, and would easily enable conversion to LSP. This has knock-on effects of eliminating the document from conversions to LSP, which simplifies the code somewhat. --------- Co-authored-by: Zach Allaun <[email protected]>
- Loading branch information
1 parent
4de2e9a
commit 506c3f0
Showing
52 changed files
with
552 additions
and
336 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
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
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
Oops, something went wrong.