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)
It's meant for embedded but that probably just means it's easy to build and uses low memory.
A high-performance, small-footprint platform that implements a subset of HTML5/CSS/JS to run applications, including the YouTube TV app.
To be clear I wasn't suggesting that Cobalt is a replacement for Electron. Electronic has a lot of its own APIs too.
Rather, I wonder if Cobalt could be better than Servo along some dimensions as an engine for something like Electron.