Message145404
| Author |
pitrou |
| Recipients |
loewis, pitrou, vstinner |
| Date |
2011年10月12日.16:06:52 |
| SpamBayes Score |
1.464757e-05 |
| Marked as misclassified |
No |
| Message-id |
<1318435613.15.0.463264753559.issue13149@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
Yes, these are things I've been wondering about. The use-case for an append-only StringIO is obviously overlapping with the use-case for using ''.join(). However, the implementation I'm proposing is better than ''.join() when writing very small strings, since there's a periodic consolidation.
> As a special case, you may consider that .truncate(0) doesn't really
> need to realize the buffer first.
True. Also, seek(0) then read() could use the same optimization. |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2011年10月12日 16:06:53 | pitrou | set | recipients:
+ pitrou, loewis, vstinner |
| 2011年10月12日 16:06:53 | pitrou | set | messageid: <1318435613.15.0.463264753559.issue13149@psf.upfronthosting.co.za> |
| 2011年10月12日 16:06:52 | pitrou | link | issue13149 messages |
| 2011年10月12日 16:06:52 | pitrou | create |
|