-
From the docs, I understand you use terser to implement minification: However, when I look at the benchmarks on this site, swc is consistently one of the fastest options. Magnitudes faster than terser itself: https://github.com/privatenumber/minification-benchmarks How is this possible? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
SWC references terser's implementation at some places, SWC does NOT uses terser under the hood. While there are some logics works similar, there are various architectual differences including runtime gives different performance numbers. |
Beta Was this translation helpful? Give feedback.
-
Thanks OJ! Does this mean SWC rewrote terser in Rust?
…On Fri, 27 May 2022 at 14:11, OJ Kwon ***@***.***> wrote:
SWC references terser's implementation at some places, SWC does NOT uses
terser under the hood.
—
Reply to this email directly, view it on GitHub
<#4820 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AADSZ4RDP5JK2CHIKDLR3GLVMBDN3ANCNFSM5XDA2DOA>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
SWC references terser's implementation at some places, SWC does NOT uses terser under the hood.
While there are some logics works similar, there are various architectual differences including runtime gives different performance numbers.