Author: tomaz
Date: Sun Dec 4 21:43:53 2011
New Revision: 1210235
URL: http://svn.apache.org/viewvc?rev=1210235&view=rev
Log:
Add a note about byte arrays.
Modified:
libcloud/trunk/libcloud/utils/files.py
Modified: libcloud/trunk/libcloud/utils/files.py
URL:
http://svn.apache.org/viewvc/libcloud/trunk/libcloud/utils/files.py?rev=1210235&r1=1210234&r2=1210235&view=diff
==============================================================================
--- libcloud/trunk/libcloud/utils/files.py (original)
+++ libcloud/trunk/libcloud/utils/files.py Sun Dec 4 21:43:53 2011
@@ -41,6 +41,9 @@ def read_in_chunks(iterator, chunk_size=
@type fill_size: C{bool}
@param fill_size: If True, make sure chunks are chunk_size in length
(except for last chunk).
+
+ TODO: At some point in the future we could use byte arrays here if version
+ >= Python 3. This should speed things up a bit and reduce memory usage.
"""
chunk_size = chunk_size or CHUNK_SIZE