mirror of
https://github.com/fastfloat/fast_float.git
synced 2025-12-06 16:56:57 +08:00
Update README.md
This commit is contained in:
parent
bc84887802
commit
1b7e05352f
@ -10,7 +10,7 @@
|
|||||||
The fast_float library provides fast header-only implementations for the C++ from_chars
|
The fast_float library provides fast header-only implementations for the C++ from_chars
|
||||||
functions for `float` and `double` types. These functions convert ASCII strings representing
|
functions for `float` and `double` types. These functions convert ASCII strings representing
|
||||||
decimal values (e.g., `1.3e10`) into binary types. We provide exact rounding (including
|
decimal values (e.g., `1.3e10`) into binary types. We provide exact rounding (including
|
||||||
round to even). In our experience, these `fast_float` functions are faster than any other comparable number-parsing functions. They provide a performance similar to that of the [fast_double_parser](https://github.com/lemire/fast_double_parser) but using an novel algorithm reworked from the ground up, and while offering an API more in line with the expectations of C++ programmers.
|
round to even). In our experience, these `fast_float` functions are faster than any other comparable number-parsing functions.
|
||||||
|
|
||||||
Specifically, `fast_float` provides the following two functions with a C++17-like syntax (the library itself only requires C++11):
|
Specifically, `fast_float` provides the following two functions with a C++17-like syntax (the library itself only requires C++11):
|
||||||
|
|
||||||
@ -65,6 +65,10 @@ The default is `fast_float::chars_format::general` which allows both `fixed` an
|
|||||||
|
|
||||||
We support Visual Studio, macOS, Linux, freeBSD.
|
We support Visual Studio, macOS, Linux, freeBSD.
|
||||||
|
|
||||||
|
## Relation With Other Work
|
||||||
|
|
||||||
|
The fast_float library provides a performance similar to that of the [fast_double_parser](https://github.com/lemire/fast_double_parser) library but using an novel algorithm reworked from the ground up, and while offering an API more in line with the expectations of C++ programmers.
|
||||||
|
|
||||||
## Users
|
## Users
|
||||||
|
|
||||||
This library is used by [Apache Arrow](https://github.com/apache/arrow/pull/8494) where it multiplied the number parsing speed by two or three times.
|
This library is used by [Apache Arrow](https://github.com/apache/arrow/pull/8494) where it multiplied the number parsing speed by two or three times.
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user