Idea: adding Zmij for faster float-to-string parsing?
Rust Internals [Unofficial]
March 22, 2026
From these two sites: vitaut/zmij: A double-to-string conversion algorithm based on Schubfach and yy in C and C++ and dtolnay/zmij: Fast floating point to string conversion in pure Rust, they claim to be the fastest float-to-string parsing algorithm with the following features:
- Round trip guarantee
- Shortest decimal representation
- Correct rounding
- High performance
- Small binary size
- Fast compile time
- IEEE 754
doubleandfloatsupport - Safer API than classic
dtoa - User-friendly output format similar to Python's default representation
- Zero dependencies
Discussion in the ATmosphere