Re:Why Discord is switching from Go to Rust
by penagwin on Tuesday February 04, 2020 @05:37PM
(#22241849)
When you guys do address it could I pretty please request you do a blog article about it?
Electron startup time as well as v8 snapshots have been a hot topic for a looooong time. I actually started a pull request for it in 2015 [0]. My pull request was focusing on source code protection, but ANY information on how you use v8 snapshots, etc. would be awesome!
Re:Why Discord is switching from Go to Rust
by dancemethis1 on Wednesday February 05, 2020 @07:26AM
(#22246147)
The thing that's really bad is that it's proprietary.
I do think it's reasonable to get the startup time of Discord to be near what VS Code's startup times are. If we remove the updater, it actually starts pretty fast (chromium boot -> JS loaded from cache) is <1s on a modern PC. And there's so much more we can do from there, for example, loading smaller chunks in the critical "load and get to your messages path" - being able to use v8 heap snapshots to speed up starting the app, etc...
The slow startup time is very much an us problem, and not an electron problem and is something I hope we'll be able to address this year.