r/cpp • u/aearphen {fmt} • Jul 20 '26
Żmij 1.1 released with fixed notation support, up to 38% faster double-to-string conversion, SIMD-optimized float formatting, a smaller binary footprint and more
41
Upvotes
View all comments
Show parent comment
4
u/mapronV Jul 20 '26
Yeah, I've been doing a lot of optimization with "why we write/read json/xml where no human will read this" in my life. Surely it is useful for debug, or like QA looking in some program package date/intermediate stuff with bare eyes but you can 1. have binary json decoder widely available 2. have environment option for testing environment so it is text json. Done. Problem solved. The rest is just interaction with some fixed protocol where nothing else available.
"Our library can parse 1 Gb of JSON in 700 milliseconds" - "Huh, why there a lot of text in first place..."
p.s. Again not diminishing amazing work of engineers making insanely fast float/datetime parsers/writers, it 100% benefit everyone. I just curious who are main benefactors of those libraries, how they ended in that situation...