[issue7471] gzip module too slow

2009-12-10 Thread Antoine Pitrou
Antoine Pitrou added the comment: How does the following compare? f = gzip.open(...) s = f.read() for line in s.splitlines(): print line -- nosy: +pitrou ___ Python tracker

[issue7471] gzip module too slow

2009-12-10 Thread asnakelover
New submission from asnakelover : It's not a big problem because we can just shell to zcat but compare these two: $ time python ./b.py >/dev/null real0m10.977s user0m7.128s sys 0m0.888s $ time python ./a.py >/dev/null real1m19.015s user1m18.185s sys 0m0.072s $ # Notice