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