<format>
: Could the output of __std_get_cvt
be cached?
#2594
Labels
<format>
: Could the output of __std_get_cvt
be cached?
#2594
#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
or65001
). 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.The text was updated successfully, but these errors were encountered: