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

feat(es/minifier): Make minifier parallel #2009

Merged
merged 121 commits into from
Aug 7, 2021
Merged

Conversation

kdy1
Copy link
Member

@kdy1 kdy1 commented Aug 4, 2021

swc_ecma_minifier:

  • Introduce bundle mode, which can be used to parallelize processing of bundled files.
  • Add a function analyzer that checks if the function references something from the outer scope.
  • Split out parellsizable passes.
  • Split optimzer into pure / non-pure.
  • Run pure optimizations in parallel.

Closes #1987.

@kdy1 kdy1 added this to the v1.2.75 milestone Aug 4, 2021
@kdy1 kdy1 marked this pull request as ready for review August 7, 2021 07:44
@kdy1 kdy1 enabled auto-merge (squash) August 7, 2021 07:45
@kdy1 kdy1 merged commit 026c21e into swc-project:master Aug 7, 2021
@kdy1 kdy1 deleted the fast-minifier branch August 7, 2021 08:27
@swc-project swc-project locked as resolved and limited conversation to collaborators Nov 8, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

minifier: slower than terser
1 participant