Cache parsed path mapping patterns (#44078)

* Cache parsed path mapping patterns

If a project has many of them (e.g. 1800), parsing the patterns
repeatedly can take up a lot of time.

* Move cache to ConfigFileSpecs

* Inline constants

* Simplify cache access
This commit is contained in:
Andrew Casey authored and GitHub committed 2021-05-26 09:40:42 -07:00
1 parent ddd3cf9406
commit 3ffa245f07
6 files changed
+42 -31

No files matched your search

+1
View File
@@ -2533,6 +2533,7 @@ namespace ts {
validatedFilesSpec: filter(filesSpecs, isString),
validatedIncludeSpecs,
validatedExcludeSpecs,
pathPatterns: undefined, // Initialized on first use
};
}