Message161484
| Author |
serhiy.storchaka |
| Recipients |
loewis, mark.dickinson, pitrou, python-dev, serhiy.storchaka, vstinner |
| Date |
2012年05月24日.07:59:01 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1337846325.2589.30.camel@raxxla> |
| In-reply-to |
<1337808900.04.0.346298442367.issue14744@psf.upfronthosting.co.za> |
| Content |
> For Python 3.3, _PyUnicodeWriter API is faster than the Py_UCS4 buffer API and PyAccu API in quite all cases, with a speedup between 30% and 100%. But there are some cases where the _PyUnicodeWriter API is slower:
Perhaps most of these problems can be solved if instead of the boolean
flag (overallocate/no overallocate) to use the Py_ssize_t parameter that
indicates by how much should you overallocate (it is the length of the
suffix in the format). |
|