-
Notifications
You must be signed in to change notification settings - Fork 284
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
as-clean-up-deps #1827
as-clean-up-deps #1827
Conversation
Initial build time and sizes: File sizes:
|
After removing File sizes:
|
@@ -22,15 +22,14 @@ | |||
"@ember/jquery": "^0.5.2", | |||
"@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 ;) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.