12 - Performance and Optimization
Optimize startup, runtime responsiveness, and bundle size.
High-impact optimizations
- Lazy-load heavy frontend modules
- Move CPU-heavy work to Rust/background threads
- Reduce plugin surface to only what you use
- Minimize static assets and icon sizes
Profiling examples
| Layer | Tooling idea |
|---|---|
| Frontend | Browser performance profiler |
| Rust CPU | cargo flamegraph |
| Binary size | cargo bloat |
Release profile basics
Use release builds and tune profile settings to reduce size and improve speed.