Message160189
| 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. |
|