Random access gzip stream

后端 未结 4 1417
余生分开走
余生分开走 2020-12-15 08:32

I\'d like to be able to do random access into a gzipped file. I can afford to do some preprocessing on it (say, build some kind of index), provided that the result of the pr

4条回答
  •  温柔的废话
    2020-12-15 09:05

    FWIW: I've developed a command line tool upon zlib's zran.c source code which can do random access to gzip with the creation of indexes for gzip files: https://github.com/circulosmeos/gztool

    It can even create an index for a still-growing gzip file (for example a log created by rsyslog directly in gzip format) thus reducing in the practice to zero the time of index creation. See the -S (Supervise) option.

提交回复
热议问题