TypeScript 4 allows
and swc now supports it.
Error messages were crpytic, mainly because I'm too lazy. Anyway, it's finally got 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
This technique aids cpu cache issue.
It drastically reduces times used to memmove.
Some design flaws are fixed, it's fully parallelzed, and it does not transform files from node_modules.
Some useless allocations are removed, some memmoves are removed. Also, merging of reexports in spack now works in parallel manner.