Re:Migrating Slack's Desktop App to BrowserView
by nartz on Monday October 30, 2017 @01:41PM
(#15587139)
I think this article is really helpful when deciding to use a nascent technology (Electron) in production- pretty cool you can create a desktop app with javascript, but at the same time, expect to do a lot of custom bug fixing and hope that there aren't issues in the core code (note: there always are) =D
[ Parent
| on HN ]
Re:Migrating Slack's Desktop App to BrowserView
by nerpderp83 on Monday October 30, 2017 @01:54PM
(#15587280)
This isn't Electron's fault. This is slacks fault. Look at the memory footprint of VS Code opening hundreds of files. A much much more substantial application than slack that uses a small fraction of the memory. On my machine, VS code with hundreds of open files is using just over 200MB.
Re:Migrating Slack's Desktop App to BrowserView
by jsnar on Tuesday October 31, 2017 @04:14AM
(#15591692)
Electron could still be faulty: its multi process architecture makes application developer easier to write memory leaking code.
Re:Migrating Slack's Desktop App to BrowserView
by WorldMaker on Monday October 30, 2017 @01:53PM
(#15587275)
I'm not sure that's the message here. The trade-offs in play aren't "custom bug fixes" but different approaches to a similar problem. In fact, the solution provided (BrowserView) is considered a better solution because it benefits from more "ordinary" browser bug fixes in Chromium and less overall custom work. (Every Chromium developer cares that Tabs work, not every Chromium developers works on or uses Chromium add-ons that make use of the <webview /> component.)
Furthermore, BrowserView versus WebView isn't even necessarily a concern for every Electron application. It's used for embedding remote (read as web server hosted) web pages. In the Electron apps I've been building, 100% of the code is hosted locally, and I don't have a need to host outside webpages.