Discord 首席技术官 Stanislav Vishnevskiy 确认,公司已放弃基于 Electron 框架的旧版应用架构,转而使用 Rust 语言重写桌面及移动客户端 12。此次重构旨在解决 Web 技术构建的应用通常占用过多系统资源的问题,并显著降低内存使用量 2。在 Windows 11 系统的早期测试中,新版“Discord Phoenix”进程的内存占用仅为 290.2 MB(登录两个账户时),相比旧版空闲状态通常占用 1GB 至 2GB、极端情况高达 4GB 的情况有了大幅优化 134。
新客户端的技术实现细节显示,其界面层采用了由 Zed 编辑器团队开发的 GPUI 框架,不再依赖 WebView 或 Chromium 进行界面绘制 1。除了桌面端,移动端的重构工作也在同步推进,iOS 和 Android 平台当前使用的 React Native 将被替换,计划通过保留原生 UI 并利用 Rust 共享应用代码来实现迁移 12。回顾历史背景,Discord 曾于 2025 年 12 月测试过当内存占用超过 4GB 时自动重启的机制,当时仅使 P95 内存占用下降约 5%,未能从根本上解决问题 1。目前,新版客户端即将进入面向用户的测试阶段,但官方尚未公布具体的正式发布确切时间 1。
Discord has officially retired its long-standing Electron framework in favor of a complete rewrite using the Rust programming language, a move confirmed by Chief Technology Officer Stanislav Vishnevskiy on November 5 1. The transition aims to resolve significant resource consumption issues inherent in the previous web-technology-based architecture, which could utilize up to 4 GB of RAM on Windows 11 systems 34. Early builds of the new desktop client, internally referred to as "Discord Phoenix," demonstrate a drastic reduction in memory footprint, dropping to approximately 290.2 MB even when two accounts are logged in simultaneously 134.
The technical overhaul extends beyond the backend logic to the interface layer, which now utilizes the GPUI framework developed by the Zed editor team and operates without reliance on WebView or Chromium for rendering 1. In contrast to the legacy Electron version that typically consumed between 1 GB and 2 GB of memory while idle, the new Rust implementation offers substantially higher efficiency 1. This optimization addresses historical performance struggles, including a mechanism tested in December 2025 that automatically restarted the application if memory usage exceeded 4 GB, a measure that had previously yielded only a marginal 5% improvement in P95 memory metrics 1.
Discord is also restructuring its mobile strategy, planning to replace React Native with Rust to share application code across platforms while retaining native user interfaces for iOS and Android 12. Although the new client is expected to enter user testing shortly, the company has not yet announced a specific timeline for the official public release 1.
评论
还没有评论,欢迎留下第一条。