Message167977
| Author |
pitrou |
| Recipients |
ezio.melotti, pitrou, vstinner |
| Date |
2012年08月11日.16:19:35 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1344701976.45.0.978427314848.issue15612@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
> _PyUnicodeWriter is almost always faster
Actually, PyAccu is consistently faster for the "writer" case, while _PyUnicodeWriter is faster for the "writer-reader" case.
This is not because of PyAccu, but because of the way StringIO uses it: when e.g. readline() is called, the PyAccu result is converted into a PyUCS4* buffer, then each readline() result is converted again by finding the max char in the sub-buffer.
So I would suggest using PyAccu, but converting its result to a _PyUnicodeWriter rather than a PyUCS4* buffer. |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2012年08月11日 16:19:36 | pitrou | set | recipients:
+ pitrou, vstinner, ezio.melotti |
| 2012年08月11日 16:19:36 | pitrou | set | messageid: <1344701976.45.0.978427314848.issue15612@psf.upfronthosting.co.za> |
| 2012年08月11日 16:19:35 | pitrou | link | issue15612 messages |
| 2012年08月11日 16:19:35 | pitrou | create |
|