Skip to content

<format>: format should statically detect the default latin-1252 character set #2342

Description

currently format can detect if you compile with /utf-8 and activate a fast path in the string parser (we can search for control characters using a simple byte search, instead of decoding all the code-points). In reality we can do this search for almost any encoding, with the exception of non-self-synchronizing multi-byte encodings.

In micro benchmarks the fast path can be 10-15x faster than the slow path, so getting the fast path for 1252 would have major performance benefits for users.

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!formatC++20/23 formatperformanceMust go faster

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions