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

Avoid defineProperty when not needed #1830

Merged
merged 1 commit into from Jun 25, 2015

Conversation

kpdecker
Copy link
Contributor

This lets us use the fast path for most object literal assignments and then utilizes the defineProperty path when there is a chance that we could hit the setter issue described in #357.

10x performance boosts seen for the six-speed test case, going from 200k operations/sec to 2M ops/sec.

This lets us use the fast path for most object literal assignments and then utilizes the defineProperty path when there is a chance that we could hit the setter issue described in babel#357.

10x performance boosts seen for the six-speed test case, going from 200k operations/sec to 2M ops/sec.
sebmck added a commit that referenced this pull request Jun 25, 2015
Avoid defineProperty when not needed
@sebmck sebmck merged commit 619fbe4 into babel:master Jun 25, 2015
@sebmck
Copy link
Contributor

sebmck commented Jun 25, 2015

This is awesome, thank you!

@kpdecker kpdecker deleted the avoid-define-property branch November 17, 2015 02:56
@lock lock bot added the outdated A closed issue/PR that is archived due to age. Recommended to make a new issue label Oct 8, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Oct 8, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
outdated A closed issue/PR that is archived due to age. Recommended to make a new issue
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants