-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
minifier: slower than terser #1987
Comments
Thanks for reducing! I'll take a look. |
Seems like an issue of name mangler. Logs from compressor test suite: (It drops to 17ms if I disable TRACE logging) Maybe base54 loop is problematic. |
Mangle was not the issue. |
Looks like this is already fixed in 1.2.74 (minifying
The wasm version is unfortunately once again slower |
Then one of the buggy passes was the cause of slowness. Thanks for testing! |
This closed issue has been automatically locked because it had no new activity for a month. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you. |
Describe the bug
With this example, swc is very slow (almost feels like an infinite loop)
Smaller code sample
With this input (a part of the antd bundle above), swc is slower than terser:
Version
The version of @swc/core: be23e66
The text was updated successfully, but these errors were encountered: