Compression formats with good support for random access within archives?

前端 未结 13 2367
滥情空心
滥情空心 2020-11-27 11:45

This is similar to a previous question, but the answers there don\'t satisfy my needs and my question is slightly different:

I currently use gzip compression for som

13条回答
  •  独厮守ぢ
    2020-11-27 12:05

    The gzip format can be randomly accessed provided an index has been previously created, as it is demonstrated on zlib's zran.c source code.

    I've developed a command line tool upon zlib's zran.c which creates 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.

提交回复
热议问题