Conversation
|
Initial build time and sizes: File sizes:
|
|
After removing File sizes:
|
| "@ember/optional-features": "^0.6.3", | ||
| "active-model-adapter": "2.2.0", | ||
| "ansiparse": "0.1.0", | ||
| "ansiparse": "artursmirnov/ansiparse", |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
|
I'm not done yet, there will be some other optimizations, although, if any of you don't like it, better to shout it earlier ;) |
backspace
left a comment
There was a problem hiding this comment.
wow, I had no idea ember-auto-import would slow things down so much. I’ve periodically struggled with imports, the various formats aren’t something I know much about. Thanks for doing this!
|
So now it's ready. The final result: File sizes:
|
|
I was curious about this change, so I tested the size impact of using ember-auto-import vs your hand-rolled list of All the size benefit from the PR comes from removing heavy dependencies like lodash. You would get the same benefit if you kept ember-auto-import and just stopped importing from lodash, etc. |
|
@ef4 thank you for your feedback, it's highly appreciated! The main purpose of this PR was to improve build time first of all, because we have some internal tools for deployments automation, which were failing due to timeouts. For some reason, Although, I really like the add-on and would love to get it back to |
|
Ah, that's interesting. Back when I first added it, I benchmarked first and it improved initial build time by about 10% and rebuild time by 30%. I will need to dig in and see if that has changed. |
|
Oh, so one reason for those speedups was I was replacing ember-browserify. So that was not necessarily the relevant comparison for this discussion, since that is now gone as well. |
Trying to clean up some dependencies in order to improve builds performance and reduce bundle size.