-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
Object Literal Extension Performance #1820
Labels
outdated
A closed issue/PR that is archived due to age. Recommended to make a new issue
Comments
|
|
sebmck
added a commit
that referenced
this issue
Jun 25, 2015
The object literal initialiser actually does this for "spec" mode but not for loose mode. Just made it do it in loose mode. Released as of 5.6.7. Thanks for the suggestion! |
Awesome, re-ran my six-speed tests and loose mode now has parity with the es5 impl (within 10%) as they are effectively the same thing now. |
lock
bot
added
the
outdated
A closed issue/PR that is archived due to age. Recommended to make a new issue
label
Jul 15, 2018
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Babel's performance is quite a bit lower than the ES5 equivalent.
http://kpdecker.github.io/six-speed/
Strict Babel was up to 83x slower and loose mode is up to 13x slower when testing in browser. Looking at the implementation I have two questions that I'm unsure of:
defineProperty
provide overobj[x] =
when using{value: value, enumerable: true, configurable: true, writable: true}
?Glad to look into PRs to change these but I want to make sure I am not missing a valid reason for things being the way they are before going this route.
The text was updated successfully, but these errors were encountered: