#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.
#2493 changed the constructor of
_Fmt_codec_base<false>to always call__std_get_cvtwith a codepage representing the execution character set (_MSVC_EXECUTION_CHARACTER_SETor65001). 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
GetCPInfoExWwhen the execution character set is not self-synchronizing.