4 ms·
This is why electron is so popular
by _ar7 9y ago
This is why electron is so popular
- westoncb 9y agoAs the author of this—yep, I can agree with that. I'm generally baffled when I see folks complain about Electron's slowness—but that's probably 'cause I started out building Swing apps :)
- thejosh 9y agoAlso the memory usage is killer.
- dawnerd 9y agoI don't get that. Atom is only using 175 megs of ram on my mac. my email client is using more than double that.
- captainmuon 9y agoMemory usage is often a bad indicator of bloat. Especially GC languages like Java and JS will just go ahead and allocate a lot of memory from the OS without using all of it all the time. If you sum the "used" memory of all apps, it will often be more than the available RAM, even though there is no swapping going on. The OS memory management is really clever nowadays. Actually, an app not using much memory may be sacrificing performance by not using a caching opportunity. Unfortunately, apps coordinating how much memory to best use is an unsolved problem, as far as I know.
- mrighele 9y agoIs it really the case ? I would expect the language to expand the size of the heap only if after a GC the amount of free memory is still below a certain threshold.
- donovanm 9y agoI think it has more to do with electron using JavaScript imo. JavaFx exists for a more modern java cross platform GUI
- solomatov 9y agoOn the other hand, the swing app has much better memory consumption than average electron app.