Skip to content

Consider fast_float and std::from_chars #3

@alugowski

Description

@alugowski

Great library!

I did notice that the integer and floating-point routines parsing are home-grown. They do seem to perform well and handle common values well, but it's easy to see places where they'd break down.

I faced the same problem and settled on fast_float for floats and std::from_chars for integers. The former has basically the same performance as read_fp, but can be considered correct (including error checking!). It's already been, or soon will be, included in all the major compilers. The latter has basically universal compiler support. I don't see a minimum C++ standard declaration anywhere, so I assume C++17 is ok.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions