This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: Performance of std::to_string
- From: Jonathan Wakely <jwakely dot gcc at gmail dot com>
- To: Mikhail Maltsev <maltsevm at gmail dot com>
- Cc: "libstdc++" <libstdc++ at gcc dot gnu dot org>
- Date: Fri, 2 Jan 2015 16:28:48 +0000
- Subject: Re: Performance of std::to_string
- Authentication-results: sourceware.org; auth=none
- References: <20150102191724 dot 523b1288 at debian-miyuki>
On 2 January 2015 at 16:17, Mikhail Maltsev wrote:
> Maybe we could substitute vsnprintf in __to_xstring by another function
> (provided that the behavior is identical)? Or even add support of
> integer types to gimple_fold_builtin_sprintf_chk?
IMHO changing the builtin would be better, as it benefits all users of
sprintf not just users of to_string, but this is the wrong list to ask
whether a change to the builtin would be accepted.