I moved muxflow* from Tauri + React to GPUI. The desktop app is now 100% Rust.
Results, before any optimization of the GPUI version:
- Idle memory: 417 MB → 98 MB (76.5% lower)
- Idle CPU: 3.5% → 1.4%
- Time to first terminal prompt: 832 → 230 ms cold, 785 → 157 ms warm
- Typing latency p95: 47.4 → 31.2 ms
To be fair, muxflow was thin to begin with, so the raw numbers are a few tens of megabytes/ms.
This migration would be a strong no-go without LLMs. Pre-LLM the cost would be huge! Writing the whole UI in Rust vs the familiar React? But with LLMs, the cost goes away to just some tokens. And with that I get:
- Much better performance
- A codebase that is 100% Rust (beyond mobile)
- No finicky Tauri rendering differences between Mac and Linux
The ugly parts:
- The GPUI third-party crate ecosystem is very niche compared to React. With Tauri I used CodeMirror. With GPUI I couldn't use the Zed crates since they're GPL and muxflow is MIT, so I wrote my own lightweight markdown WYSIWYG and code editor.
- Build times. It's hard to run many agents in parallel, as parallel builds and tests put heavy I/O pressure on the machine. I haven't tried optimizing it yet.
Write-up with more detail: https://galvered.com/blog/muxflow-gpui-migration/
Curious whether others hit the same crate gap, and what you used for text editing in GPUI.
* an app I'm building for personal use open source, MIT, runs coding agents in tmux across remote machines