Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Optimizing AST node visitor #1625

Merged
merged 3 commits into from
Jan 9, 2015
Merged

Optimizing AST node visitor #1625

merged 3 commits into from
Jan 9, 2015

Conversation

ahejlsberg
Copy link
Member

This PR optimizes the forEachChild visitor function. The function previously used nested helper functions that caused closure allocations, but those helpers are now regular functions and the additional information is passed as a parameter. The Monaco project compiles ~6% faster on node.js (v0.10.35) and ~2% faster on Chakra with this optimization.

@CyrusNajmabadi
Copy link
Contributor

👍

1 similar comment
@vladima
Copy link
Contributor

vladima commented Jan 9, 2015

👍

ahejlsberg added a commit that referenced this pull request Jan 9, 2015
@ahejlsberg ahejlsberg merged commit 415b5ff into master Jan 9, 2015
@ahejlsberg ahejlsberg deleted the forEachPerf branch January 9, 2015 18:12
@DanielRosenwasser DanielRosenwasser restored the forEachPerf branch January 11, 2015 06:20
@DanielRosenwasser DanielRosenwasser deleted the forEachPerf branch January 11, 2015 06:25
@microsoft microsoft locked and limited conversation to collaborators Jun 18, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants