Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 8e0ef58

Browse files
committed
Merged revisions 88334 via svnmerge from
svn+ssh://[email protected]/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. ........
1 parent f60b485 commit 8e0ef58

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

Doc/library/io.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -796,6 +796,8 @@ Text I/O over a binary storage (such as a file) is significantly slower than
796796
binary I/O over the same storage, because it implies conversions from
797797
unicode to binary data using a character codec. This can become noticeable
798798
if you handle huge amounts of text data (for example very large log files).
799+
Also, :meth:`TextIOWrapper.tell` and :meth:`TextIOWrapper.seek` are both
800+
quite slow due to the reconstruction algorithm used.
799801

800802
:class:`StringIO`, however, is a native in-memory unicode container and will
801803
exhibit similar speed to :class:`BytesIO`.

0 commit comments

Comments
 (0)