[issue12450] Use the Grisu algorithms to convert floats to strings

Bart Robinson report at bugs.python.org
Sun Feb 19 19:25:29 EST 2017


Bart Robinson added the comment:

Six years later, I have accepted Amaury's challenge and created an extension module that uses the double-conversion library to generate repr's for floats: https://pypi.python.org/pypi/frepr

My rudimentary performance testing gives something like 8X speedup compared to the standard float_repr().

Scrutiny and suggestions welcome...

----------
nosy: +Bart Robinson

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue12450>
_______________________________________


More information about the Python-bugs-list mailing list