-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Permalink
Choose a base ref
{{ refName }}
default
Choose a head ref
{{ refName }}
default
Comparing changes
Choose two branches to see what’s changed or to start a new pull request.
If you need to, you can also or
learn more about diff comparisons.
Open a pull request
Create a new pull request by comparing changes across two branches. If you need to, you can also .
Learn more about diff comparisons here.
base repository: crystal-lang/crystal
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 0a375f504ca5
Could not load branches
Nothing to show
Loading
Could not load tags
Nothing to show
{{ refName }}
default
Loading
...
head repository: crystal-lang/crystal
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 32f583fbf091
Could not load branches
Nothing to show
Loading
Could not load tags
Nothing to show
{{ refName }}
default
Loading
- 5 commits
- 11 files changed
- 1 contributor
Commits on Jun 4, 2017
-
Add FloatPrinter based on Grisu3
This improves the speed of transforming floats to their string representation. It is based on the 2004 paper "Printing Floating-Point Numbers Quickly and Accurately with Integers" by Florian Loitsch[1]. Most of the code is a port from the BSD-licensed C++ project "double-conversion"[2], which was extracted from the V8 engine. The Grisu3 algorithm is fast because it deals only with fixed-sized integer arithmetic. It takes advantage extra bits leftover from the 53-bit significand in a 64 bit number to help find the optimal string representation. However this only works for 95.5% of floats and it rejects the remaining 0.5%. Rejected numbers still need to be printed with some other, slower method. 1: http://www.cs.tufts.edu/~nr/cs257/archive/florian-loitsch/printf.pdf 2: https://github.com/google/double-conversion
Configuration menu - View commit details
-
Copy full SHA for 08dcf53 - Browse repository at this point
Copy the full SHA 08dcf53View commit details -
Configuration menu - View commit details
-
Copy full SHA for d8c8417 - Browse repository at this point
Copy the full SHA d8c8417View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5e1df56 - Browse repository at this point
Copy the full SHA 5e1df56View commit details -
Configuration menu - View commit details
-
Copy full SHA for 576f815 - Browse repository at this point
Copy the full SHA 576f815View commit details -
Configuration menu - View commit details
-
Copy full SHA for 32f583f - Browse repository at this point
Copy the full SHA 32f583fView commit details
There are no files selected for viewing
Large diffs are not rendered by default.