4 ms·
I'm wondering how swapping Electron for another Chromium backend will allow them to halve the memory usage. Is Node the main reason that Electron uses so much m
by axutio 5y ago
I'm wondering how swapping Electron for another Chromium backend will allow them to halve the memory usage. Is Node the main reason that Electron uses so much memory? Or is the Chromium renderer poorly optimized to the extent that it's using double the memory needed?
- oscargrouch 5y agoYou must remember that each Electron instance will have its own gpu and browser process. If you do just like Chrome, one host process + one gpu process and all the rest are renderer process as it was meant to, you will use less memory. Im working on something that are meant to enable native applications with a Chrome-based platform, and it was one of the first thing i've tried to achieve. Electron was just being sloppy and stick with its first MVP.. because being able to centrally control things through a process like the Chrome browser process does, give you a lot more functionality to explore, compared to what Electron is doing where each host/browser process is isolated and don't know about the other players. Its akin to use a cannon to kill a fly..