News for hackers. Stuff that matters.
Re:Show HN: Cross-platform desktop applications with PyQT by Haitischmock on Tuesday February 06, 2018 @02:50PM (#16318966)
Would it be possible to resolve Electron's performance issues by "precompiling"/prerendering the HTML and CSS (+ maybe scripts) ? As long as the app UI stays the same, it should be cached in an optimized form. (sorry if that already exists in Electron)
Re:Show HN: Cross-platform desktop applications with PyQT by ricardobeat on Tuesday February 06, 2018 @03:04PM (#16319090)
Performance-sensitive apps already do that (like VS Code, Atom). Most of the cost is in the javascript, caching bytecode lowers startup time a lot. Pre-rendering is not really practical, and painting is rarely the main bottleneck either way.

AFAIK the main performance issues come from chromium's vast size - browsers are complex machines and it's easy to hurt performance by doing something that looks reasonable at first, but blocks the UI. Being single-threaded doesn't help. But reality is, most of the time Electron apps perform really well, it's just that they have slower startup times, consume massive amounts of memory, more CPU than average, and are 100MB each.

Re:Show HN: Cross-platform desktop applications with PyQT by WorldMaker on Tuesday February 06, 2018 @02:59PM (#16319044)
Some Electron apps do use things like caches of Chromium/v8 binary memory states to speed startup.