This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients loewis, pitrou, serhiy.storchaka, vstinner
Date 2012-05-08.08:37:05
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <CAMpsgwYqLwoim_SqJkJT=HtKBo8H3oy1S8ymtW5Q_PbBDxvXtw@mail.gmail.com>
In-reply-to <1336455282.4987.19.camel@raxxla>
Content
_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.
History
Date User Action Args
2012-05-08 08:37:06vstinnersetrecipients: + vstinner, loewis, pitrou, serhiy.storchaka
2012-05-08 08:37:05vstinnerlinkissue14744 messages
2012-05-08 08:37:05vstinnercreate