`<string>`: `to_string()` for integers could be faster · Issue #3857 · microsoft/STL · GitHub
Skip to content

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

Description

@StephanTLavavej

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    fixedSomething works now, yay!performanceMust go faster

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions