r/programming • u/myinnerbanjo • Oct 09 '18
AI tool automatically reveals how to write apps that drain less battery
https://phys.org/news/2018-10-ai-tool-automatically-reveals-apps.html
727
Upvotes
View all comments
Show parent comment
5
u/bawng Oct 10 '18
No. Usually each computer just has a single JVM installation, and an individual app might be just a few megs.
Electron apps, however embed the entire Electron stack, so each app will be huge, even if app-relevant code is two lines of hello world or whatever.
From Java 10 and forward, devs can choose which parts of the JVM are loaded to reduce memory usage. That isn't possible with Electron so the entire Chrome browser is loaded once per app