[libcxx-commits] [PATCH] D59178: Speedup to_string and to_wstring for integers using stack buffer and SSO

Afanasyev Ivan via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Sat Mar 9 11:22:28 PST 2019

ivafanas created this revision.
ivafanas added reviewers: howard.hinnant, ed.
Herald added subscribers: libcxx-commits, ldionne, christof.

Proposed solution is to call sprintf-like function into buffer on stack and copy result into string / wstring. It allows to use SSO for small numbers.

  rCXX libc++



-------------- next part --------------
A non-text attachment was scrubbed...
Name: D59178.189990.patch
Type: text/x-patch
Size: 5514 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20190309/fbaf30fc/attachment-0001.bin>

More information about the libcxx-commits mailing list