File: gzipthreadsread128kblocks.py

package info (click to toggle)
python-isal 1.8.0-0.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,768 kB
  • sloc: python: 3,247; ansic: 2,961; makefile: 13
file content (9 lines) | stat: -rw-r--r-- 202 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
import sys

from isal import igzip_threaded

with igzip_threaded.open(sys.argv[1], "rb") as gzip_file:
    while True:
        block = gzip_file.read(128 * 1024)
        if not block:
            break