Re:TypeScript as fast as Rust: TypeScript++
by triyambakam on Thursday April 07, 2022 @07:15PM
(#30951473)
Do you have any resources you like for diving deeper into profiling and learning the nature of the JS GC?
It's certainly not helped by the latest language fads just completely flooring the GC gas pedal; special mention should go to for...of creating a brand new object for each loop iteration. That's usually the first thing I rip out of tight loops.
A bit of care can make this stuff go 3x fast on PC, and I've gotten completely unusable experiences on mobile (most websites) to be 30-40fps.