]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Merged revisions 88334 via svnmerge from
authorAntoine Pitrou <solipsis@pitrou.net>
Fri, 4 Feb 2011 20:17:53 +0000 (20:17 +0000)
committerAntoine Pitrou <solipsis@pitrou.net>
Fri, 4 Feb 2011 20:17:53 +0000 (20:17 +0000)
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
  r88334 | antoine.pitrou | 2011-02-04 21:11:11 +0100 (ven., 04 févr. 2011) | 3 lines

  Mention that seek and tell over a TextIOWrapper can be very slow.
........

Doc/library/io.rst

index e3c710367849cd4df798b68e185b65bd98aadc22..3cfaaed35b3edba56d80b13270cb08d9f46e641f 100644 (file)
@@ -812,6 +812,8 @@ Text I/O over a binary storage (such as a file) is significantly slower than
 binary I/O over the same storage, because it implies conversions from
 unicode to binary data using a character codec.  This can become noticeable
 if you handle huge amounts of text data (for example very large log files).
+Also, :meth:`TextIOWrapper.tell` and :meth:`TextIOWrapper.seek` are both
+quite slow due to the reconstruction algorithm used.
 
 :class:`StringIO`, however, is a native in-memory unicode container and will
 exhibit similar speed to :class:`BytesIO`.