Message132266
Glenn wrote:
> So if flush checks that bit, maybe TextIOWriter could just call buffer.flush, and it would be fast if clean and slow if dirty?
Yes. I'll benchmark how much overhead is added by the calls to flush; there's no point in breaking the abstraction boundary of BufferedWriter if it doesn't give a significant performance benefit. (I suspect that it might not, because Windows is very slow at scrolling a console, which might make the cost of flushing insignificant in comparison.) |
|
Date |
User |
Action |
Args |
2011-03-26 19:22:52 | davidsarah | set | recipients:
+ davidsarah, lemburg, terry.reedy, tzot, amaury.forgeotdarc, pitrou, vstinner, christian.heimes, tim.golden, mark, christoph, ezio.melotti, v+python, hippietrail, ssbarnea, santoso.wijaya, David.Sankel |
2011-03-26 19:22:52 | davidsarah | set | messageid: <1301167372.36.0.54449771408.issue1602@psf.upfronthosting.co.za> |
2011-03-26 19:22:48 | davidsarah | link | issue1602 messages |
2011-03-26 19:22:48 | davidsarah | create | |
|