Does it use a new instance for every app, or it loads the engine once and reuses some of it for every instance?
ie. can Electron be made to work like a system shared library, similar to GTK/Qt ?
The only improvement I see is to move away from electron. For alternatives everyone should take a look at Revery-ui written in Reasonml. Its starts in milliseconds, few megs of RAM usage, very low CPU usage and has most of the modern developer experience associated with Electron!!
MS probably knows. VSCode without any extension is pretty reactive and light. It becomes heavy when you have 20 tabs open with linters, languages servers, formatters and so on.
But your comparison is also not really fair, since you assume everything runs and is stored on your local computer. This is not the case anymore at all.
Plus, the web browser is probably the first application that is started by a user.
Following applications all run in my browser:
- email
- video conferencing with screen sharing
- (persistent) chatting
- Office applications (word processor, spreadsheet, ...)
- photo storage
- games
- development sandboxes
- ...
In fact most Apps I have on my phone could just be PWA's.
I'm not saying we should all go web, but I'm saying that most things where you want to use electron, you could let it run on the web.
Does it use a new instance for every app, or it loads the engine once and reuses some of it for every instance? ie. can Electron be made to work like a system shared library, similar to GTK/Qt ?