Reduce storage of maps/sets for failed lookups

This commit is contained in:
Sheetal Nandi
2017-08-31 15:18:54 -07:00
parent 2b97b2c04d
commit 8d5d4c2a0e
2 changed files with 67 additions and 137 deletions

View File

@@ -789,6 +789,7 @@ namespace ts.server {
private updateGraphWorker() {
const oldProgram = this.program;
this.writeLog(`Starting Update graph worker: Project: ${this.getProjectName()}`);
this.resolutionCache.startCachingPerDirectoryResolution();
this.program = this.languageService.getProgram();
this.resolutionCache.finishCachingPerDirectoryResolution();
@@ -843,6 +844,7 @@ namespace ts.server {
}
});
this.writeLog(`Finishing Update graph worker: Project: ${this.getProjectName()}`);
return hasChanges;
}