[issue1501108] Add write buffering to gzip

2010-04-03 Thread Charles-Francois Natali
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

[issue1501108] Add write buffering to gzip

2010-04-03 Thread Lukas Lueg
Lukas Lueg knabberknusperh...@yahoo.de added the comment: agreed -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1501108 ___ ___ Python-bugs-list

[issue1501108] Add write buffering to gzip

2010-04-03 Thread Antoine Pitrou
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

[issue1501108] Add write buffering to gzip

2009-03-22 Thread Antoine Pitrou
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

[issue1501108] Add write buffering to gzip

2009-03-22 Thread Lukas Lueg
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() ==

[issue1501108] Add write buffering to gzip

2009-03-20 Thread Daniel Diniz
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 ___