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).
Actually, that's wrong. The patch is still O(CHUNK_SIZE) but with a vastly different multiplier (and, optimistically, much smaller, as common codecs are codecs in C). ---------- _______________________________________ 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