Conversation
This one `require` increases startup time by 100ms (coming from `loadOptions`).
|
Build successful! You can test your changes in the REPL here: https://babeljs.io/repl/build/44528/ |
|
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. Latest deployment of this branch, based on commit 23da89c:
|
JLHwung
left a comment
There was a problem hiding this comment.
lodash/sort is stable. However, Array#sort is not stable util V8 7.0. We can polyfill it by lodash sortBy on Node.js < 11 like we did for other features:
Lines 259 to 270 in 21e8e59
Hopefully we can switch to Array#sort in Babel 8.
I added a simple bucket sorter. And it's faster! https://jsbench.github.io/#f32d70e88170ab4e165ac1f7f30df163 |
|
Good catch. We should add logical assignment to shippedProposals. |
|
Does this change the behavior when |
You're right. I've updated to not use an array. |
This one
requireincreases startup time by ~100ms (coming fromloadOptions).Re: #11726