Antoine Pitrou <pit...@free.fr> added the comment:

Here is a proof-of-concept patch for the pure Python version of 
TextIOWrapper.tell(). It turns the O(CHUNK_SIZE) operation into an O(1) 
operation most of time (still O(CHUNK_SIZE) worst-case - weird decoders and/or 
crazy input).

----------
keywords: +patch
Added file: http://bugs.python.org/file20676/textiotell.patch

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

Reply via email to