4 ms·
IMHO "Electron is bloaty" has become a meme on its own which just gets repeated over and over without actually checking how much of it is true. For instance wh
by flohofwoe 5y ago
IMHO "Electron is bloaty" has become a meme on its own which just gets repeated over and over without actually checking how much of it is true.
For instance when comparing VSCode to Visual Studio or Xcode, VSCode isn't universally slower, far from it. VSCode is much faster from start to first keystroke than both VS or Xcode. In other areas it's not so clear, some actions are slower in VSCode, some are faster (and before "but VSCode is a text editor, not an IDE", with the right plugins VSCode is as much an IDE as it needs to be).
So if even the Visual Studio or Xcode teams at Microsoft and Apple can't create applications that are universally better than an Electron application, why should 3rd party developers care about creating "native" applications?
The Windows and macOS platform teams don't seem to have quite understood yet that they are in competition with Electron, and in order to compete, they have to make it easier to create cross-platform applications than what Electron provides. Nobody will choose native macOS or Windows APIs just because they provide a "native look and feel" (which neither Microsoft nor Apple care about all that much in their own applications either).
- dwighttk 5y agoMy problem with electron is not that the apps are slow it is that I can (usually) guess if an app is electron by seeing which ones are using up an entire core when the app is just sitting doing nothing
- flohofwoe 5y agoThat's not what I'm seeing with VSCode on macOS though: the highest priority task when sitting "mostly idle" 'Code Helper (Renderer)' at 0.2%, which is at 7th or 8th position (and for instance below an idle iTerm2). I suspect that the applications that use up a core when idle would do this also if Electron is not used (e.g. it's a property of the development team, not of the framework).
- dwighttk 5y agoMaybe, but it seems there’s something about development teams that choose to write native apps that avoid that because I’ve never guessed an app was electron and been wrong using this method.
- ksec 5y agoVSCode is the outliner in Electron and not the norm. M$ had a whole team on VSCode dedicated just for performance. Outliner to Outliner you may want to compare VSCode to Sublime Editor.
- flohofwoe 5y agoYes, almost as if performance doesn't happen on its own. It must be a stated goal and the whole team must work towards that goal (you really don't need a "dedicated performance team", with or without Electron).