-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
If you open two source roots quickly, there's a "thrashing" effect where each file added from the second root invalidates programCache and forces the first root's error checking task to rebuild its program(s). When this happens, error checking takes a long time: O(num files^2). This can also happen if you delete many files from one root while another root is error checking. Fix this by adding/removing all indexables at once with the lock held.
- Loading branch information
1 parent
fc54734
commit e8eb8cf
Showing
2 changed files
with
30 additions
and
19 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