STINNER Victor <victor.stin...@gmail.com> added the comment: _PyUnicodeWriter in long_to_decimal_string() for example. > > long_to_decimal_string() is already creates a string of known size. How > _PyUnicodeWriter can help here?
"x={}".format(123) uses a temporary buffer for "123". Using _PyUnicodeWriter even to format 123 would avoid a malloc() and a copy of the characters. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue14744> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com