759
RAM prices soar, but popular Windows 11 apps are using more RAM due to Electron, Web components
(www.windowslatest.com)
This is a most excellent place for technology news and articles.
I really wish Electron wasn't as popular as it is. It's such a fucking memory hog. I mean, sure, I've got RAM to spare, but I shouldn't need that much for a single app.
Yes, it runs a separate browser instance for each electron program. Many of the programs that use it could just be a PWA instead.
This is what bothers me so much... Browsers should be improving their PWA implementation (looking at you, Firefox) and electron apps should be PWAs more often. Another decent middle ground Is Tauri. SilverBullet and Yaak are both so much lighter and better than anything else on my system.
Yeah but companies want full control and no ad blockers. That’s why they’re pushing shoddy Electron apps over their web experiences and PWAs.
Or, even better, let’s start developing for separate platforms again, and optimise software for the platform that’s going to be running it. Rather than just developing everything for Chrome.
I wonder how much exact duplication each process has?
https://www.kernel.org/doc/html/latest/admin-guide/mm/ksm.html
One imagines that one could maybe make a library interposer to induce use of that.
I guess the key is it has to be the same version of electron in the back end. If they change too much of it then how much memory can be shared?
I tried the PWA route with Discord. It wouldn't stay logged in, and acted generally janky. That said, I do PWA with any app that's Electron, at least to try and avoid the RAM bloat.
maybe a toggle to choose between "take some extra RAM, I'm feeling generous" and "fuck you, I'm computing shit over here" could be used to let the app know your current mood / needs ...
Memory hogging browsers usually do release memory when pressured. You can take it further by getting extensions that unload unused tabs.
The problem is electron apps that load the whole browser core over and over.