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 …
Comment on RAM prices soar, but popular Windows 11 apps are using more RAM due to Electron, Web components
_cryptagion@anarchist.nexus 4 weeks ago
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.
modular950@lemmy.zip 4 weeks ago
TheBlackLounge@lemmy.zip 4 weeks ago
Memory hogging browsers usually do release memory when pressured. You can take it further by getting extensions that unload unused tabs.
The problem electron apps that load the whole browser core over and over.
cmnybo@discuss.tchncs.de 4 weeks ago
Yes, it runs a separate browser instance for each electron program. Many of the programs that use it could just be a PWA instead.
lastweakness@lemmy.world 4 weeks ago
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.
Pechente@feddit.org 4 weeks ago
Yeah but companies want full control and no ad blockers. That’s why they’re pushing shoddy Electron apps over their mobile experiences and PWAs.
tal@lemmy.today 4 weeks ago
I wonder how much exact duplication each process has?
www.kernel.org/doc/html/latest/…/ksm.html
fuckwit_mcbumcrumble@lemmy.dbzer0.com 4 weeks ago
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?
plz1@lemmy.world 4 weeks ago
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.
SaraTonin@lemmy.world 3 weeks ago
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.