Repository navigation
Commit 684640d
committed
perf(javascript): build tighten_body's steps once, not per call
tightenBody declared its seven steps inside itself, sharing `changed`
and the scope with them, so every call built them again, 54,503 times
per minify of typescript.js, with the closures some of them built per
statement on top. The steps are now module-level functions handed one
state object per nesting depth, and their inner closures take what they
read as arguments.
Also carries #22521's fit of two printer tests to #22473 and #22499
together, which fail on main and gate the integration jobs.1 parent 683b7a1 commit 684640d
2 files changed
Lines changed: 914 additions & 648 deletions
0 commit comments