Discord is ditching Electron and its new app uses less RAM | The Verge
Discord is moving its apps fully over to the Rust programming language.
Yes, and it is a massive shift for the desktop app industry.
The Problem: Up to this point, Discord was essentially a disguised Google Chrome tab running via Electron. It was notorious for being a massive memory hog, easily consuming 1GB to 4GB of RAM (which they heavily mitigated by auto-restarting the app in the background when it got too bloated)[1][3][4]. The "Phoenix" Rewrite: Discord is entirely rebuilding its client using Rust[5]. For the desktop interface, they are not using WebViews at all; they are using GPUI, a GPU-accelerated Rust UI framework developed by the team behind the Zed code editor[1][6]. The Results: An early internal Windows build (codenamed "Discord Phoenix") showed the app running with multiple accounts while consuming only ~290 MB of RAM and booting up almost instantly without a loading screen[5][7][8]. What about Mobile? Discord is dropping React Native on iOS and Android. Instead, the mobile apps will use true native interfaces (Swift/Kotlin) but will share all of the core application logic with the desktop app via a shared Rust core[7][9].
No comments:
Post a Comment