Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve float-to-string conversion using Ryu #112

Open
tgregg opened this issue Jul 30, 2018 · 0 comments
Open

Improve float-to-string conversion using Ryu #112

tgregg opened this issue Jul 30, 2018 · 0 comments

Comments

@tgregg
Copy link
Contributor

tgregg commented Jul 30, 2018

The text writer currently uses sprintf for its float-to-string conversions. Ryu may provide an opportunity to improve both the correctness and performance of this conversion.

From the authors:

We present Ryū, a new routine to convert binary floating point numbers to their decimal representations using only fixed-size integer operations, and prove its correctness. Ryū is simpler and approximately three times faster than the previously fastest implementation.

See also:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant