Charles-Francois Natali neolo...@free.fr added the comment:
In the test script, simply changing
def emit(f, data=snips):
for datum in data:
f.write(datum)
to
def gemit(f, data=snips):
datas = ''.join(data)
f.write(datas)
improves direct gzip performance from
Lukas Lueg knabberknusperh...@yahoo.de added the comment:
agreed
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1501108
___
___
Python-bugs-list
Antoine Pitrou pit...@free.fr added the comment:
Additionally, since issue7471 was fixed, you should be able to wrap a GzipFile
in a Buffered{Reader,Writer} object for faster buffering.
--
resolution: - out of date
status: open - closed
___
Python
Antoine Pitrou pit...@free.fr added the comment:
Although the script does not work as-is (missing import of string,
typo between frags and wfrags), I can conform the 3x ratio.
--
nosy: +pitrou
___
Python tracker rep...@bugs.python.org
Lukas Lueg knabberknusperh...@yahoo.de added the comment:
This is true for all objects whose input could be concatenated.
For example with hashlib:
data = ['foobar']*10
mdX = hashlib.sha1()
for d in data:
mdX.update(d)
mdY = hashlib.sha1()
mdY.update(.join(data))
mdX.digest() ==
Changes by Daniel Diniz aja...@gmail.com:
--
nosy: +ajaksu2
stage: - needs patch
versions: +Python 2.7, Python 3.1
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1501108
___