News for hackers. Stuff that matters.
Re:Building a fast Electron app with Rust by LeoNatan25 on Sunday March 18, 2018 @06:15AM (#16611221)
A clean "hello world" Electron excrement takes 200+ MB in RAM. How is that an "issue from web pages" exactly?
Re:Building a fast Electron app with Rust by quantummkv on Sunday March 18, 2018 @06:57AM (#16611327)
A full electron app i am making handles about 10,000+ records in memory along with react. Never seen it go above 150 mb on any system. You must have misread the numbers.
Re:Building a fast Electron app with Rust by tarruda on Sunday March 18, 2018 @06:34AM (#16611268)
Where did you get this information? I just tested "electron-quick-start" on Linux and all 3 processes use 40 MiB together
Re:Building a fast Electron app with Rust by wander_homer on Sunday March 18, 2018 @08:31AM (#16611640)
Here on my systems (Ubuntu, Gentoo) electron-quick-start leads to ~90 MB more memory usage and it spawns 4 processes which use 110MB, 74MB, 74MB and 44MB of resident memory. So obviously quite some memory is shared between those and probably other processes on my system, but nevertheless the resulting memory consumption is far above 40 MB.
Re:Building a fast Electron app with Rust by tarruda on Sunday March 18, 2018 @08:43AM (#16611687)
I used gnome-system-monitor to check memory usage, which doesn't include the memory used by the executable image itself, and which I believe is more than 60 MiB.

Theoretically this memory could be shared by all electron applications running in a single machine. In practice every Electron app bundles its own runtime.

Re:Building a fast Electron app with Rust by LeoNatan25 on Sunday March 18, 2018 @08:54AM (#16611728)
I tested on Mac and my numbers were higher. Even if some memory is shared between parent and child processes, each still has its own isolated VM, a DOM tree and a memory heap. So a lot of that is not shared.