News for hackers. Stuff that matters.
Re:Using Rust in Non-Rust Servers to Improve Performance by btilly on Monday October 28, 2024 @11:14AM (#41971884)
That's because you're churning temporary memory. JS can't free it until garbage collection runs. Rust is able to do a lifetime analysis, and knows it can free it immediately.

The same will happen on any function where you're calling functions over and over again that create transient data which later gets discarded.

There are no comments on this comment yet.