IT

Discord moves from Electron to Rust for better performance

Discord is transitioning its desktop app from Electron to Rust. The update promises lower RAM usage and improved speed for its desktop users.

·2 min read
Discord moves from Electron to Rust for better performance

Discord has announced a major architectural shift: the company is moving its desktop application fully to the Rust programming language. This transition ends the app's reliance on Electron, a cross-platform framework that has long been criticized for its heavy resource footprint on desktop systems.

  • Transitioning from Electron to Rust for improved performance.
  • Significant reduction in RAM usage (down to ~290MB).
  • Unifying codebases for desktop and mobile environments.
  • Focusing on memory safety and application responsiveness.

Why Discord is ditching Electron

While Electron was instrumental in Discord's early growth by enabling web-based development, its performance overhead has become a bottleneck. By shifting to Rust, a language designed for speed and memory safety, Discord aims to make its desktop client significantly more efficient. CTO Stanislav Vishnevskiy confirmed that the company has been using Rust internally since 2018, and this move marks the final step in standardizing the client architecture.

Rust allows Discord to eliminate the overhead associated with the Chromium-based Electron runtime. This optimization is particularly beneficial for users running resource-heavy applications alongside Discord, as it drastically reduces the memory burden on the system.

Read alsoOpenAI introduces Pando: A Git backend built for AI-driven coding

Memory savings and future rollout

Vishnevskiy shared data showing an early version of the new Windows client consuming just 290MB of RAM—a massive improvement compared to the current client, which can easily exceed 1GB depending on server activity. The efficiency gains are expected to make the platform feel much snappier on both high-end and lower-spec hardware.

Although a firm release date has not yet been set, the company expects to begin user testing in the near future. This architectural overhaul also enables mobile and desktop clients to share more app code via Rust while maintaining a native UI, ensuring a consistent and optimized experience across all devices.

Impact on the developer and user ecosystem

For the end-user, this means a smoother experience with less background resource consumption. For developers and the tech industry, Discord's pivot demonstrates the growing maturity of Rust as a primary language for complex GUI applications, moving beyond its traditional domain of backend infrastructure and systems programming.

Source: The Verge

Related articles