Discord首席技术官Stanislav Vishnevskiy在X平台发布视频,展示了该公司基于Rust语言开发的全新客户端原型,该演示视频已获得230万次观看 1。新版客户端旨在解决大型聊天应用在Windows系统上资源消耗过高的问题,其核心性能指标显著优于现有的Electron版本 1。数据显示,新客户端跳过了传统的“Starting”启动屏幕,实现了冷启动后好友列表的瞬间加载;相比之下,旧版Electron客户端在此环节仍需停留约3至5秒,常显示加载界面或空白窗口 1。
在内存效率方面,当同时登录两个账户时,新客户端的RAM占用量约为290MB(具体数值为290.2MB),比通常超过1GB的使用量减少了约70% 1。这一优化得益于底层架构的重大变更:Discord弃用了Electron和Chromium引擎,转而采用由Zed编辑器团队开发的GPU加速UI框架GPUI,并将Web端逻辑迁移至WebAssembly (WASM) 1。此外,移动端也将不再依赖React Native,而是通过Rust与桌面端共享代码,但iOS和Android仍将保持原生界面 1。Vishnevskiy强调,低内存占用只是优势之一,他表示:“新的Discord客户端使用更少的RAM只是故事的一部分。点击操作感觉即时,我无法再回去了。” 1
目前,该应用即将进入私有测试阶段,但尚未公布公开发布日期 1。作为行业背景参考,同类通讯软件如WhatsApp(基于WebView2)空闲状态下的内存占用高达1.2GB,Microsoft Teams则为963MB 1。关于后续分发策略,当被问及是否会将更新交给微软商店处理时,Discord音视频负责人Coral回应称:“我们此刻不会这样做。” 1
Discord Chief Technology Officer Stanislav Vishnevskiy unveiled a prototype of the company’s new desktop client built with Rust, marking a significant shift away from its existing Electron-based architecture 1. The video demonstration on X garnered approximately 2.3 million views, highlighting stark performance improvements over the current version 1. A key visual distinction in the demo showed the new client loading friends lists almost instantly upon cold startup, whereas the legacy Electron client frequently stalled for three to five seconds at a loading screen or displayed a blank window 1. Additionally, the updated application bypasses the traditional "Starting" splash screen entirely, leveraging architectural changes that support background automatic updates 1.
The technical overhaul involves abandoning both Electron and the Chromium engine in favor of GPUI, a GPU-accelerated user interface framework developed by the team behind the Zed editor 1. Web-based logic is being migrated to WebAssembly (WASM), while the mobile strategy also shifts: React Native is no longer used, allowing Rust code to be shared between desktop and mobile platforms, though iOS and Android interfaces remain native 1. These changes have yielded substantial resource savings; during a test with two accounts logged in simultaneously, the new client consumed only 290.2 MB of RAM, representing a roughly 70% reduction compared to the standard usage of over 1 GB 1. For context, competitors like WhatsApp via WebView2 were noted to use up to 1.2 GB when idle, while Microsoft Teams consumes around 963 MB 1.
Discord Marketing Director Ryan K. Rigney confirmed that the application is approaching a private testing phase, although no date has been announced for a public release 1. Coral, the head of audio and video at Discord, stated regarding whether updates would be delivered through the Microsoft Store: "We do not at this moment" 1. Emphasizing the tangible impact of these optimizations, Vishnevskiy remarked in the demonstration, "The new Discord client using less RAM is just part of the story. Clicking around feels instant, I can’t go back." 1
评论
还没有评论,欢迎留下第一条。