6 ms·
Sigh. Yet another native desktop app I will now have to stop using on my laptop in order to get any kind of decent battery life off the grid. Having Electon.JS
by Hydraulix989 9y ago
Sigh. Yet another native desktop app I will now have to stop using on my laptop in order to get any kind of decent battery life off the grid. Having Electon.JS apps open effectively halves my battery usage in Linux. Each one is a separate Chrome instance, and Chrome uses considerably more power than Firefox (we're talking multiple watts).
When I'm on the go and want my Lenovo P50 mobile workstation laptop to last an entire cross-country flight so I can get work done (a real use case), I have to use Slack web client, Sublime instead of VS Code, Firefox instead of Chrome, and manually close out of a whole bunch of less important Electron apps (Discord, Gitter, Skype, Upwork, Spotify, Atom, etc.), and only then will powertop show an acceptable < 20W of power draw instead of close to 30 W with all of the Electron apps open, allowing my laptop to have five hours of battery life instead of two, which means it will last the whole flight.
I still have a bunch of native Linux desktop apps that I prefer to use to this very day that are fast, responsive, and don't make my laptop's fans sound like a leaf blower while failing to prevent the heated chassis from scorching my lap.
Devs don't let other devs use Electron -- as a real alternative, consider using the wxWidgets cross-platform native GUI app framework (with its myriad language bindings) so that you can have a single code base that supports all of the major platforms.
- dirtylowprofile 9y agoI agree, what's up with all these Electron apps. Based on memory usage currently, Skype is using 245MB, Slack is using 312MB and Spotify at 233MB. While Telegram is only using 78MB. And I have more active chats on Telegram too.
- flukus 9y ago> I agree, what's up with all these Electron apps. The common theme seems to be developer convenience. What's best for users is no longer something developers consider when choosing tools.
- dirtylowprofile 9y agoThat's okay for now. Until let's say majority of apps run on Electron. What's gonna be left for memory then.
- deleted 9y ago[deleted]
- bobwaycott 9y agoThat's when it's time to push users to get more RAM as the solution to their problems. EDIT: /s
- flukus 9y agoIt's amazing how disconnected developers are when it comes to RAM, the steam user survey (http://store.steampowered.com/hwsurvey http://store.steampowered.com/hwsurvey) puts 30% at having 4GB or less, and that's an audience that trends towards the higher end. For all the complaints of the mac book pro not having enough RAM, it had enough for 99.9% of people.
- Hydraulix989 9y agoAt the time, it seemed silly that I maxed out my laptop with 64 GB of RAM, but now, I'm starting to feel like it was good foresight.
- dirtylowprofile 9y agoDude, I live in a third world where upgrading specs in a computer is really an after thought. As a developer, you should also think other parts of the world. I'm just saying. Majority of the laptops sold here has an average RAM of 4-8GB.
- flukus 9y agoThat's basically the same as the first world, plenty still have less then 4GB.
- bobwaycott 9y ago
- jabl 9y ago> While Telegram is only using 78MB My irssi seems to be using an order of magnitude less than that, 7.8 MB RSS. Get off my lawn! :-/ (Yes, irc is unencrypted, but still...)
- flukus 9y ago> 7.8 MB RSS. It's as bloated as emacs!
- xpaulbettsx 9y agoI mean, GitHub Desktop didn't exist on Linux before at all, so I guess "zero battery used" is indeed a high bar to beat.
- Hydraulix989 9y agoI'm going to still be using gitg.
- xpaulbettsx 9y ago:cool:
- tenryuu 9y agoBecause no one needed a git client that was locked to a single platform. And they still don't
- akubera 9y agoBut, didn't you hear? "As it turns out, building native apps for multiple platforms doesn’t scale." How else could they write the app to support 3 platforms? /s There is also no mention of the fact that electron is also a GitHub product; maybe this is assumed to be general knowledge, but it seemed to be trying to sell electron pretty hard and waves off the platform's deficiencies with a "things will get better soon" line. Anyways, stand strong & resist the electron assimilation.