fastfloat/fast_float
Fast and exact implementation of the C++ from_chars functions for number types: 4x to 10x faster than strtod, part of GCC 12, MySQL, DuckDB, Chromium, Redis and WebKit/Safari observed · 2026-08-28
Health v2 · maintenance only
91/100
- Activity 99
- Release rhythm 76
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: 32.0
- age_days: 2144
- days_rel: 80
- days_push: 10
- n_releases_24m: 17
Adoption not part of the score
2088 stars · 192 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
fast_float is a header-only C++11 library providing fast, exact implementations of std::from_chars for float, double, and integer types, parsing ASCII decimal strings with correct IEEE 754 round-to-even rounding. It sustains roughly a gigabyte per second on commodity hardware, does not allocate or throw, and is used in GCC 12, MySQL, DuckDB, Chromium, Redis, and WebKit.
Use cases
- parse floating-point numbers from strings faster than strtod
- replace std::from_chars on compilers lacking full C++17 support
- parse numeric CSV or JSON fields at high throughput
- convert ASCII integers in bases 2-36 without allocations
- get exact IEEE 754 rounding when parsing decimals
- parse numbers in a C++11 codebase with C++17-style API
When to choose
- you need bit-exact, locale-independent number parsing with round-to-even
- number parsing is a performance bottleneck in your C++ code
- you want a header-only, dependency-free, allocation-free parser
- you need portability across GCC, Clang, MSVC, and ARM/x86/RISC-V
When to avoid
- you need locale-aware parsing with custom thousands separators or locale decimal points
- your standard library's from_chars or strtod performance is already sufficient
- you are writing C rather than C++ (consider a C port instead)
- you need to parse exotic number formats beyond decimal, hex, infinity, and nan
Facets
library · maturity stable
parser serialization developer-tools developer-tools performance cpp cross-platform windows bsd header-only number-parsing from-chars floating-point simd high-performance cpp11 cpp17 algorithms data-engineering linux macos
2 sources
- readme: https://github.com/fastfloat/fast_float · fetched 2026-08-28 · 03302c2a7835
- homepage: https://fastfloat.github.io/fast_float/ · fetched 2026-08-29 · e58afe0b496b
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| fastfloat/fast_float | main | 91 |
For agents
markdown · JSON · MCP: product_card(name="fastfloat/fast_float")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem