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 2 months 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 2 months ago
TheBlackLounge@lemmy.zip 2 months 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 2 months 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 2 months 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 2 months 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 2 months ago
I wonder how much exact duplication each process has?
www.kernel.org/doc/html/latest/…/ksm.html
fuckwit_mcbumcrumble@lemmy.dbzer0.com 2 months 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 2 months 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 2 months 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.