Skip to content

<format>: Could the output of __std_get_cvt be cached? #2594

Description

@cpplearner

#2493 changed the constructor of _Fmt_codec_base<false> to always call __std_get_cvt with a codepage representing the execution character set (_MSVC_EXECUTION_CHARACTER_SET or 65001). Since the execution character set does not change for the lifetime of a program, could the information be cached?

This would save a lot of calls to GetCPInfoExW when the execution character set is not self-synchronizing.

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