Rust will not bring that magic.
Rust will not bring that magic.
It’s not an automatic magic bullet, but in a world where humans are still writing the code, Rust’s feature set makes many performance optimizations much more practical.
(Provided that the C++ version is not strictly optimal WRT resource allocation; I think it's a rather safe bet.)
The memory usage part isn't really apart of rust or C, but rather that projects like chromium require significant hoops to jump through if you wanted to compile electron with only what you need.
I expect that servo will be tackling this issue, the browser works standalone and that's a hefty achievement in itself.
that said this makes it an excellent testbed but compilation time will keep getting slower every release until they start caring about it
[0]: https://nikic.github.io/2020/05/10/Make-LLVM-fast-again.html
(that said gcc -O0 is still absolutely nothing like what a human would write)