Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Method and device for compressing and decompressing gzip format file, and storage medium

A technology for format files and compressed files, which is applied in the computer field, can solve problems such as the inability to know the size of storage blocks in advance, the inability to perform decompression of storage blocks in parallel, and the low efficiency of decompression of gzip files.

Inactive Publication Date: 2018-09-07
ZHENGZHOU YUNHAI INFORMATION TECH CO LTD
View PDF4 Cites 3 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

When decompressing a gzip file containing a large number of storage blocks according to the standard gzip file format, only after the current storage block in the gzip file is decompressed can the size of the current storage block and whether there are subsequent storage blocks after the current storage block be known, which can only be done one by one Decompressing the storage blocks in the gzip file leads to low decompression efficiency of the gzip file. Secondly, because the size of the storage block cannot be known in advance, it is impossible to execute each decompression link in the storage block in parallel, which in turn leads to gzip format files. decompression efficiency

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method and device for compressing and decompressing gzip format file, and storage medium
  • Method and device for compressing and decompressing gzip format file, and storage medium
  • Method and device for compressing and decompressing gzip format file, and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0048] The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.

[0049] The embodiment of the invention discloses a method for compressing the gzip file format, a method for decompressing the gzip file format, a device and a storage medium, which improve the decompression efficiency of the gzip format file.

[0050] See figure 1 , figure 1 It is a schematic flow chart of a method for compressing a file in gzip format disclosed in an embodiment of the present invention, and the method includes:

[0051] S101. Obtain a file t...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a method for decompressing a gzip format file, and a storage medium. Target file head field is identified so as to obtain the amount of storage blocks pre-stored in a target file and the storage capacity value of each storage block, so that a plurality of storage blocks in the target file can be simultaneously decompressed. Compared with the prior art that the storage blocks in the target file are decompressed one by one, the scheme can simultaneously decompress a plurality of compression blocks each time so as to improve the decompression efficiency of the target file.In addition, the invention also discloses a device for decompressing the gzip format file, and also has the above effects.

Description

technical field [0001] The invention relates to the field of computers, in particular to a method, device and storage medium for compressing and decompressing a gzip file format. Background technique [0002] Gzip format files are widely used in windows system and linux system, and the suffix is ​​usually .gz. The gzip format is also a very common data compression format used on the Internet. The use of gzip encoding can improve the network transmission performance of WEB programs and allow users to experience faster speeds. Gzip is just a file format consisting of one or more blocks. A standard gzip file consists of three parts, namely the header part, the data part and the tail part. The header part includes ID1, ID2, CM, FLG, MTIME, XFL, OS, and optional part, and the FLG in the header part is a flag bit, which includes bit0set, bit1set, bit2set, bit3set, bit4set, bit5set, bit6set, bit7set. The tail part includes CRC32 and ISIZE. When decompressing a gzip file containi...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06F17/30
Inventor 史宏志尹云峰赵雅倩
Owner ZHENGZHOU YUNHAI INFORMATION TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products