Changelog: swc v1.2.21
#
General improvements#982)#
Support optional named tuple elements (TypeScript 4 allows
and swc now supports it.
#980)#
Better error messages (Error messages were crpytic, mainly because I'm too lazy. Anyway, it's finally got improved.
becomes
#
Performance improvement#992)#
Performance of swc is improved (Previously, swc spend all time moving the memory with memmove
. I've managed to remove some memmoves.
Also, panic cases are handled properly.
For example, I changed code from
to
This technique aids cpu cache issue.
#
sse2 is enabledIt drastically reduces times used to memmove.
#992, #972)#
Performance of spack is improved (Some design flaws are fixed, it's fully parallelzed, and it does not transform files from node_modules.
#973)#
Binary size is reduced (Some useless allocations are removed, some memmoves are removed. Also, merging of reexports in spack now works in parallel manner.