[issue1501108] Add write buffering to gzip
Lukas Lueg
report at bugs.python.org
Sun Mar 22 22:21:34 CET 2009
Lukas Lueg <knabberknusperhaus at yahoo.de> added the comment:
This is true for all objects whose input could be concatenated.
For example with hashlib:
data = ['foobar']*100000
mdX = hashlib.sha1()
for d in data:
mdX.update(d)
mdY = hashlib.sha1()
mdY.update("".join(data))
mdX.digest() == mdY.digest()
the second version is multiple times faster...
----------
nosy: +ebfe
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue1501108>
_______________________________________
More information about the Python-bugs-list
mailing list