You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+30-5
Original file line number
Diff line number
Diff line change
@@ -64,10 +64,38 @@ The `traces/` directory contains more specific traces for investigations.
64
64
65
65
> ✨ You might consider using [0x](https://github.com/davidmarkclements/0x) for nice flamegraph visuals.
66
66
67
+
All comparisons were run on a common shape of linting: 1024 files with the "even" (triangle-shaped) imports layout.
68
+
69
+
### Comparison: Globals in Scopes
70
+
71
+
> 📌 Filed on typescript-eslint as [⚡ Performance: Overhead of populateGlobalsFromLib in scope-manager](https://github.com/typescript-eslint/typescript-eslint/issues/9575).
72
+
73
+
This trace shows the impact of `@typescript-eslint/scope-manager`'s `populateGlobalsFromLib`.
74
+
75
+
See `traces/globals-scope-manager/`:
76
+
77
+
-`baseline.cpuprofile`: Baseline measurement with no changes
78
+
-`skipping.cpuprofile`: Commenting out the contents of `populateGlobalsFromLib`
79
+
80
+
They were generated with:
81
+
82
+
```shell
83
+
cd files-1024-layout-even-singlerun-true-types-service
> 📌 Filed on TypeScript as [⚡ Performance: Project service spends excess time cleaning client files when called synchronously](https://github.com/microsoft/TypeScript/issues/59335).
96
124
97
125
This comparison shows the cost of the TypeScript project service calling `cleanupProjectsAndScriptInfos`.
98
-
It also was run on a common shape of linting: 1024 files with the "even" (triangle-shaped) imports layout.
99
126
100
127
See `traces/service-file-cleanup/`:
101
128
@@ -123,7 +150,6 @@ Hyperfine measurements show a ~15-20% improvement in lint time:
123
150
> 📌 Filed on TypeScript as [⚡ Performance: Project service doesn't cache all fs.statSync](https://github.com/microsoft/TypeScript/issues/59338).
124
151
125
152
This comparison shows the cost uncached `fs.statSync` calls inside the project service.
126
-
It also was run on a common shape of linting: 1024 files with the "even" (triangle-shaped) imports layout.
127
153
128
154
See `traces/service-uncached-stats/`:
129
155
@@ -180,7 +206,6 @@ Hyperfine measurements show a ~7-12% improvement in lint time:
180
206
> 📌 Filed on TypeScript as [⚡ Performance: Project service doesn't cache all fs.realpath](https://github.com/microsoft/TypeScript/issues/59342).
181
207
182
208
This comparison shows the cost uncached `fs.realpath` calls inside the project service.
183
-
It also was run on a common shape of linting: 1024 files with the "even" (triangle-shaped) imports layout.
0 commit comments