Maybe you don't need Rust and WASM to speed up your JS (2018)
There was a back-and-forth on optimizing this (see the link Steve found). The WASM version got faster too by adopting algorithmic changes proposed here, and the conclusion of Rust authors was that you do need WASM if you want <i>predictable</i> performance.<p>High-perf JS relies on staying on the JIT happy path, not upsetting GC, and all of this is informal trickery that&#x27;s not easy to do for all JS engines. There&#x27;s never any guarantee that JS that optimizes perfectly today won&#x27;t hit a performance cliff in a new JIT implementation tomorrow.