3 ms·
Performance improves as each new version of Electron basically ships with an updated V8 engine, which usually improves performance, but they also work on optimi
by fabiospampinato 8y ago
Performance improves as each new version of Electron basically ships with an updated V8 engine, which usually improves performance, but they also work on optimizing Electron itself (for instance: [1]).
I think most of the times if an Electron app is not snappy enough then the developers didn't spend enough time optimizing it, take a look at VS Code vs Atom for instance, I haven't used Atom in a while so maybe the situation in different now, but both are Electron apps, VS Code is fast and Atom is (was?) not.
[1] https://github.com/electron/electron/pull/14633 https://github.com/electron/electron/pull/14633
- InGodsName 8y agoI think it's because VSCode uses typescript and it had better plugin architecture. VSCode also uses lazy loading so doesn't initate everything at once you click the launcher icon but does it progressively.
- fabiospampinato 8y agoVS Code doesn't provide direct DOM access to extensions authors, that's definitely a deciding factor. But a couple of years ago even simply writing inside Atom without using any extension felt sluggish to me. TypeScript gets downcompiled to JavaScript anyway, so I don't think that's directly a contributing factor, but maybe because of the type system they can spend less time debugging and more time optimizing.
- bitwize 8y agoIt's because much of the guts of VSCode is written in C++ and optimized. Because, you know, Microsoft.
- InGodsName 8y agoSo eletrons lets you code part of it in C++?
- fabiospampinato 8y agoYou can have native modules in Node.js, and you can use Node.js inside Electron.
- sime2009 8y agoNo it's not. The file searching code is in Rust (IIRC) and runs as an external process, but that is about it.