Skip to content

Commit 159dfbf

Browse files
perf(javascript): build inline's flattening helpers once, not per call (#22493)
inlineIntoCall built ten closures and an arrow for every call it looked at, 79,798 times per minify of typescript.js, to decide whether the called function flattens into the scope around the call. The helpers are now module-level functions handed one state object, which nothing they read optimizes through, so a single one serves every call.
1 parent 6eb6072 commit 159dfbf

1 file changed

Lines changed: 388 additions & 330 deletions

File tree

0 commit comments

Comments
 (0)