[issue1501108] Add write buffering to gzip

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

[issue1501108] Add write buffering to gzip

2010-04-03 Thread Lukas Lueg
Lukas Lueg added the comment: agreed -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

[issue1501108] Add write buffering to gzip

2010-04-03 Thread Charles-Francois Natali
Charles-Francois Natali 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 [1.1799781322479248, 0.50524

[issue1501108] Add write buffering to gzip

2009-03-22 Thread Lukas Lueg
Lukas Lueg 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() == mdY.digest() the second versio

[issue1501108] Add write buffering to gzip

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

[issue1501108] Add write buffering to gzip

2009-03-20 Thread Daniel Diniz
Changes by Daniel Diniz : -- nosy: +ajaksu2 stage: -> needs patch versions: +Python 2.7, Python 3.1 ___ Python tracker ___ ___ Pyth