A journey to performance
summary
Rewriting Mercurial core components in Rust to speed up hg status and other commands, replacing Python (and some C) code with Rust to achieve large performance gains (e.g., 1.1s → 0.04s). Covers Rust↔Python interoperability, choice of Rust data structures, fast directory traversal, append-only binary formats, mtime caching, safe concurrent mmap usage, multithreading, and cross-platform (Unix/Mac/Windows) issues.
AI-written summary · about
related talks
46mA journey to performance: using Rust in Mercurial
27mOxidizing Mercurial: The good and the less good
36mPumping up Python modules using Rust
29mPerformance: We're In This Together
36mPolishing Python: Preventing Performance Corrosion with Rust
31mPumping up Python modules using Rust
33mRust at Sentry: 7 Years Later
26mMoving to modern languages in long-living projects