Re:Zmij: Faster floating point double-to-string conversion
by Cold_Miserable on Wednesday December 17, 2025 @05:28PM
(#46306461)
Already done ages ago. Nothing more of interest.
The bottleneck are the 3 conditionals:
- positive or negative
- positive or negative exponent, x > 10.0
- correction for 1.xxxxx * 2^Y => fract(log10(2^Y)) 1.xxxxxxxx > 10.0
The bottleneck are the 3 conditionals: - positive or negative - positive or negative exponent, x > 10.0 - correction for 1.xxxxx * 2^Y => fract(log10(2^Y)) 1.xxxxxxxx > 10.0