David-Sarah Hopwood <david-sa...@jacaranda.org> added the comment:

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

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue1602>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to