[Python-checkins] r88334 - python/branches/py3k/Doc/library/io.rst
antoine.pitrou
python-checkins at python.org
Fri Feb 4 21:11:11 CET 2011
Author: antoine.pitrou
Date: Fri Feb 4 21:11:11 2011
New Revision: 88334
Log:
Mention that seek and tell over a TextIOWrapper can be very slow.
Modified:
python/branches/py3k/Doc/library/io.rst
Modified: python/branches/py3k/Doc/library/io.rst
==============================================================================
--- python/branches/py3k/Doc/library/io.rst (original)
+++ python/branches/py3k/Doc/library/io.rst Fri Feb 4 21:11:11 2011
@@ -814,6 +814,8 @@
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`.
More information about the Python-checkins
mailing list