Hacker GitHub

← All repos

fastfloat/fast_float

View on GitHub ↗ ★ 2,141 C++

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

9 mentions on Hacker News by 8 people: 1 story, 8 comments · first 2021-01-30 · latest 2024-10-14

Mentions per year 9 mentions · busiest year 2021 (5)
20082026
  1. …12 (and also used by Chrome) claims to be 4 - 10 times faster than old strtod implementations: https://github.com/fastfloat/fast_float For more historical context: https://lemire.me/blog/2020/03/10/fast-float-parsing-in-prac...
  2. …It's not a parsing library, but a printing one, i.e., double -> string. https://github.com/fastfloat/fast_float is a parsing library, i.e., string -> double, not by Google though, but was indeed motivated by parsing JSON fast http
  3. …2018 when that code was written in which case not even integer from_chars would be available. [0] https://github.com/fastfloat/fast_float
  4. …float parsing themselves. [0] https://github.com/gcc-mirror/gcc/blob/master/libstdc++-v3/s... [1] https://github.com/fastfloat/fast_float
    comment by account42 · 2022-09-07 · in Someone’s Been Messing with My Subnormals
  5. Any body wanting to port the fast float parser in java too ? https://github.com/fastfloat/fast_float Lemire's really has made a huge contribution to computer science
  6. Some fun things I've figured out: * https://github.com/fastfloat/fast_float <-- for fast float/double conversion * from_chars() for fast integer conversion (though I benchmarked a few that were slightly faster but probably less robust),…
  7. …/lemire.me/blog/2021/01/29/number-parsing-at-a-gigaby... [2] https://arxiv.org/pdf/2101.11408.pdf [3] https://github.com/fastfloat/fast_float [4] https://github.com/aldanor/fast-float-rust/
    comment by aldanor · 2021-02-07 · in The Eisel-Lemire ParseNumberF64 Algorithm
  8. ▲ 109
    Fastfloat – C++ library 4x faster than strtod
    story by dilawar · 2021-01-31 · 17 comments
  9. …"The fast_float library provides a performance similar to that of the fast_double_parser library." https://github.com/fastfloat/fast_float However, the benchmarks show a significant improvement relative to those in the fast_double_parser…
    comment by SloopJon · 2021-01-30 · in Number Parsing at a Gigabyte per Second