3 ms·
Electron actually gives you quite a bit of free help for power consumption. The Chromium team goes through great lengths to save power and most of those efforts
by e0m 10y ago
Electron actually gives you quite a bit of free help for power consumption. The Chromium team goes through great lengths to save power and most of those efforts get reflected in Electron. For example, when it the app gets put in the background it will automatically reduce power usage.
When no javascript is running the app consumes effectively no power.
Now that being said there's nothing to stop developers from running lots of expensive code or being non-performant with rendering. This is true in any environment. However; having access to the type of flame-charts and profiling tools that come with Chrome / Electron go a really long way to addressing some of these issues.
I work at Nylas and we've been heavily focused on reducing the amount of power the app consumes. We've still got a lot of work to do, but at the end of the day processing a ton of email quickly is a fairly expensive operation.
In the long run it's possible to offload very expensive work to natively compiled modules. A lot of Electron projects do this and can use Node's native bindings to connect to processes that really need to be fast in native code.
- ComputerGuru 10y ago> The Chromium team goes through great lengths to save power and most of those efforts get reflected in Electron. Citation needed. Battery life with Safari on Mac or IE/Edge on Windows is easily twice that of Chrome/Chromium with the same tabs open. Note: I'm not disputing that the Chrome team has put in significant effort, but rather that the results are anything above mediocre at best.
- gnufied 10y agoI have done some benchmarking of Qt/C++ vs Eletron/node performance while I was working on rbkit-client (https://github.com/code-mancers/rbkit-client https://github.com/code-mancers/rbkit-client) and frankly performance gap is huge for stuff like parsing, processing and anything which is CPU bound. So if Nylas is parsing imap messages then both parsing and rendering difference between a native and eletron app will be big. Fortunately browsers workaround some of this problem by consuming json and stuff - formats browsers can natively parse.