Skip to content

<string>: to_string() for integers could be faster #3857

Description

Related to #1024 and #3805 but not a duplicate.

In DevCom-10402949, a user has suggested using the divide-by-100 approach (already used by Ryu/<charconv>) to print digits faster. (Note: Due to licensing concerns, please DO NOT refer to libstdc++'s implementation linked by the DevCom suggestion.) They have also suggested calling memcpy() for 2 bytes, although I find this surprising and would want to confirm via benchmarking.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    fixedSomething works now, yay!performanceMust go faster

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions