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

File compression and decompression method and device

A compression method and decompression technology, applied in the computer field, can solve problems such as wasting system overhead and storage space

Active Publication Date: 2019-04-05
NETEASE (HANGZHOU) NETWORK CO LTD
View PDF8 Cites 12 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] However, the existing data file compression methods need to establish two sets of compression systems, wasting system overhead and storage space

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
  • File compression and decompression method and device
  • File compression and decompression method and device
  • File compression and decompression method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0114] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments It is a part of embodiments of the present invention, but not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.

[0115] figure 1 It is a schematic structural diagram of a file compression and decompression device provided by an embodiment of the present invention. The file compression and decompression devices provided in this embodiment may be devices such as computers, tablet computers, servers, terminals, etc., and this embodiment does not specifically l...

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 embodiment of the invention provides a file compression and decompression method and device. The file compression method comprises the following steps: partitioning a source file according to a partitioning mode with an unfixed length to obtain a plurality of original partitions; And according to the plurality of original blocks, obtaining a compression block corresponding to each original block. And storing the plurality of compressed blocks, and obtaining the compressed file according to the offset of each compressed block and the offset of the original block corresponding to each compressed block. The file decompression method comprises the following steps of: decompressing a file; The method comprises the following steps: receiving a reading instruction for reading a compressed file; obtaining the offset of each compressed block in the compressed file and the offset of the original block corresponding to each compressed block; and obtaining a target compressed block corresponding to the target data from the compressed file according to the offset of the target data in the source file, the offset of each compressed block, the offset of the corresponding original block and the length of the target data. According to the embodiment of the invention, the data access efficiency is improved, and the system overhead and the storage space are reduced.

Description

technical field [0001] The invention relates to the field of computers, in particular to a method and device for compressing and decompressing files. Background technique [0002] With the rapid development of the Internet, the storage of large data files has gradually become a problem worth studying, because large data files occupy a large amount of memory, so the method of compressing large data files is often used for storage. [0003] In the prior art, when large data files (source files) are compressed and stored, the source files are usually divided into original blocks of a fixed size, and the original blocks of a fixed size are further compressed to obtain compressed blocks, and then the original blocks are compressed according to the original blocks. The sequence of the blocks in the source file splices all the compressed blocks into a file to be stored, and then obtains the compressed file according to the index of the file to be stored and the compressed file. At...

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): G06F16/174
Inventor 梁兆豪陈毅舜
Owner NETEASE (HANGZHOU) NETWORK 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