Skip to content

Commit 76357ba

Browse files
Swap forEachChild to use a table of functions instead of a switch statement. (#50225)
* Swap `forEachChild` to use an array of functions instead of a `switch` statement. * Let's see if 'new' changes anything. * Co-locate each assignment into `forEachChildTable`. * Try `push`ing undefined to create a packed Array. * Try using an unconditional no-op function. * `forEach` -> `forEachChildIn` * Remove the optional chain if we are pre-filling with no-ops. * Grab function directly to avoid possible `.call` overhead from downlevel emit. * Swap to object literal. * Lints and formatting.
1 parent 38e91fb commit 76357ba

File tree

1 file changed

+732
-556
lines changed

1 file changed

+732
-556
lines changed

0 commit comments

Comments
 (0)