Why is std::from_chars<float> slow?

This page summarizes the projects mentioned and recommended in the original post on /r/cpp

WorkOS - The modern identity platform for B2B SaaS
The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
workos.com
featured
InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com
featured
  • 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 and WebKit/Safari

  • I tried to compare it against Daniel Lemire's excellent fast_float library. Fast float took about 180ms for the same program, and all I did was change "std" namespace prefix to "fast_float". It's a factor of 12 difference, at least my machine. I tried MSVC next, and it is a lot better, but it is still ~4 times slower than fast float. AFAIK, clang currently does not implement the feature at all.

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

    WorkOS logo
NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts

  • What do number conversions (from string) cost?

    1 project | /r/cpp | 20 Mar 2023
  • Passing Programs To A Stack Machine

    1 project | /r/cpp_questions | 11 Nov 2021
  • Iterator invalidation of std::string_view

    1 project | /r/cpp | 12 Feb 2021
  • Number Parsing at a Gigabyte per Second

    1 project | news.ycombinator.com | 30 Jan 2021
  • Fastfloat – C++ library 4x faster than strtod

    2 projects | news.ycombinator.com | 30 Jan 2021