Improve number-to-string conversion #1334
Labels
kind: enhancement/improvement
state: stale
the issue has not been updated in a while and will be closed automatically soon unless it is updated
The
dump_integer
function is naive custom code and thedump_float
function uses a Grisu2 implementation. This leaves a lot of room for improvements.In C++17, we could use
<charconv>
'sstd::to_chars
as pointed out by u/STL and live happily ever after. Unfortunately, we are still sticking around with C++11.Examples for code to try are:
Maybe there are other projects, too.
It would be great to try different implementations. The largest piece of work should usually be to make it run as single header, and to adjust it to the interface.
The text was updated successfully, but these errors were encountered: