News for hackers. Stuff that matters.
Re:Tauri: An Electron alternative written in Rust by hobofan on Friday February 19, 2021 @01:21PM (#26196144)
It seems like Electron is decently optimizable for a lowish memory footprint. Both the Element and Discord desktop client run with consistently ~50MB RAM each.
Re:Tauri: An Electron alternative written in Rust by scaladev on Friday February 19, 2021 @01:57PM (#26196579)
>~50MB RAM each

You _are_ measuring the total RAM usage, right? Something like `free -m` right before starting the application, and then after it warms up?

Every time I see these "electron is not heavy, it only uses X MBs of RAM", it turns out that the author looked at a single electron process (out of typically 5-10), and then only measured RSS, completely ignoring shared memory.

Re:Tauri: An Electron alternative written in Rust by kaslai on Friday February 19, 2021 @02:20PM (#26196868)
Doesn't RSS include shared mappings? That's why metrics like PSS and USS were introduced.

But that aside, yeah Discord is pretty heavy. My current instance which is only connected to a single server is eating 555 MB PSS, or 846MB RSS. Definitely not a lightweight at all.

Re:Tauri: An Electron alternative written in Rust by scambier on Friday February 19, 2021 @01:54PM (#26196537)
Are you sure about that? Most of the time, Electron apps are split into multiple processes, and the task manager (by default) only shows the main one. Order your processes by name and I'd be surprised to see the total under 150MB.