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

Method and device for compressing and decompressing gzip formatted file and storage medium

A technology for formatting files and compressing files, applied in the computer field, can solve the problems of inability to know the size of storage blocks in advance, low decompression efficiency of gzip files, and inability to perform decompression links of storage blocks in parallel.

Inactive Publication Date: 2018-09-11
ZHENGZHOU YUNHAI INFORMATION TECH CO LTD
View PDF3 Cites 1 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 formatted file and storage medium
  • Method and device for compressing and decompressing gzip formatted file and storage medium
  • Method and device for compressing and decompressing gzip formatted file and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0046] 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.

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

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

[0049] S101. Obtain a file to be compressed, and compress the file ...

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 formatted file. When a target file is decompressed, since the number of storage blocks and storage capacity values of the storage blocks in the target file can be obtained, multiple storage blocks in the target file can be decompressed simultaneously. Compared with a method of decompressing the storage blocks in the target file one by one in the prior art, the disclosed method obviously shortens the decompressing time of the target file, and the decompressing efficiency of the target file is improved. Besides, the invention further discloses a device for decompressing the gzip formatted file and a storage medium. The device and the storage medium have the same advantages.

Description

technical field [0001] The invention relates to the field of computers, in particular to a method, device and readable 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. The FLG in the header part is a flag bit, which includes bit0 set, bit1set, bit2 set, bit3 set, bit4 set, bit5 set, bit6 set, bit7 set. The tail part includes CRC32 and ISIZE. When decompressing a gzip ...

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
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