|
|
|
|
|
by btilly
605 days ago
|
|
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. |
|