File compression algorithm selection method based on capability negotiation

A compression algorithm and file compression technology, applied in the field of file transmission, can solve problems such as slow compression and decompression speed, inability to choose compression algorithm, etc., to achieve fast compression and decompression, and improve compression and decompression efficiency.

Pending Publication Date: 2022-04-01
深圳市云语科技有限公司
View PDF0 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] The purpose of the present invention is to overcome the deficiencies of the prior art, provide a method for selecting a file compression algorithm based on capability negotiation, and solve the problem in the prior art that the optimal compression algorithm cannot be selected for a specific platform, resulting in slow compression and decompression speeds The problem

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 algorithm selection method based on capability negotiation

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0016] The present invention will be described in detail below in conjunction with the accompanying drawings and specific embodiments.

[0017] Please refer to figure 1 , the present invention provides a method for selecting a file compression algorithm based on capability negotiation, comprising the following steps:

[0018] S1: The file sending end establishes a communication connection with the file receiving end, and the file sending end selects any file on it as a test file, compresses the test file using all the compression algorithms in the first compression module respectively, and generates a test file Compress the package, and record the time used by all compression algorithms to compress the test file respectively, and record it as the first duration; the first compression module includes Zstd compression algorithm, gzip compression algorithm, zlib compression algorithm, brotli compression algorithm, lz4 compression algorithm . At least two of the snappy compressio...

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 capability negotiation-based file compression algorithm selection method, which comprises the following steps of: compressing a test file by using all compression algorithms in a first compression module to generate a test file compression package, and recording compression time as first duration; all the generated test file compressed packages are sent to a file receiving end, and the file receiving end decompresses the related test file compressed packages by adopting corresponding compression algorithms in a second compression module and records respective decompression time as second duration; the second duration is sent to the file sending end, the file sending end adds the first duration and the second duration corresponding to the same compression algorithm, and the sum is recorded as the total duration; and selecting the compression algorithm with the minimum total duration as the compression algorithm for subsequent file compression and decompression. According to the method, the optimal compression algorithm can be selected according to the specific processing capacity of the file sending end and the file receiving end, and rapid compression and decompression of the file are achieved.

Description

technical field [0001] The invention relates to the field of file transmission, in particular to a method for selecting a file compression algorithm based on capability negotiation. Background technique [0002] Currently, in a file transmission system, data is usually compressed before transmission to facilitate data transmission. In the prior art, the same compression algorithm is usually used on different platforms. However, since the compression and decompression performance of different compression algorithms on different platforms are quite different, if the performance of the specific platform itself is not selected The optimal compression algorithm cannot make full use of the machine processing power of the platform, resulting in slow file compression and decompression speed. [0003] Therefore, there are defects in the prior art and need to be improved. Contents of the invention [0004] The purpose of the present invention is to overcome the deficiencies of the...

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): G06F16/174
Inventor 李盈亮
Owner 深圳市云语科技有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products