Repository navigation
Commit 4d46ce4
authored
perf(javascript): keep no list for a token gap holding no comments (#22491)
Asking for the comments before a token the parser had read past stored
the shared empty list under its index, growing a holey array to the
token count: 28 MB per minify of typescript.js. The empty list is now
returned without being kept.1 parent c47682f commit 4d46ce4
1 file changed
Lines changed: 6 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13600 | 13600 | | |
13601 | 13601 | | |
13602 | 13602 | | |
13603 | | - | |
13604 | | - | |
13605 | | - | |
13606 | | - | |
| 13603 | + | |
| 13604 | + | |
| 13605 | + | |
| 13606 | + | |
| 13607 | + | |
| 13608 | + | |
13607 | 13609 | | |
13608 | 13610 | | |
13609 | 13611 | | |
| |||
0 commit comments