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

Use UglifyJS when possible, but fall back to Babel.minify. #8519

Merged
merged 1 commit into from
Mar 27, 2017

Conversation

benjamn
Copy link
Contributor

@benjamn benjamn commented Mar 25, 2017

This gives us all the benefits of @sethmurphy18's great work without the additional performance hit of using Babili for everything.

With this commit:

% meteor create min-test
% cd min-test
% time meteor build ../min-build
meteor build ../min-build  39.26s user 5.49s system 112% cpu 39.647 total

Without this commit:

meteor build ../min-build  59.28s user 5.23s system 107% cpu 1:00.08 total

Keep in mind this is the best-case scenario for Babili (a very small app). Larger apps take much longer for Babili to minify.

cc @abernix @glasser @sethmurphy18

This gives us all the benefits of @sethmurphy18's great work without the
additional performance hit of using Babili for everything.

With this commit:

  % meteor create min-test
  % cd min-test
  % time meteor build ../min-build
  meteor build ../min-build  39.26s user 5.49s system 112% cpu 39.647 total

Without this commit:

  meteor build ../min-build  59.28s user 5.23s system 107% cpu 1:00.08 total

Keep in mind this is the best-case scenario for Babili (a very small app).
Larger apps take much longer for Babili to minify.

cc @abernix @glasser @sethmurphy18
@benjamn benjamn added this to the Release 1.4.4 milestone Mar 25, 2017
@benjamn benjamn requested a review from abernix March 25, 2017 16:10
Copy link
Contributor

@abernix abernix left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants