首页> 外国专利> MULTI-THREAD COMPRESSION AND DECOMPRESSION METHODS IN GENERIC DATA GZ FORMAT, AND DEVICE

MULTI-THREAD COMPRESSION AND DECOMPRESSION METHODS IN GENERIC DATA GZ FORMAT, AND DEVICE

机译:通用数据GZ格式和设备中的多线程压缩和解压缩方法

摘要

Multi-thread compression and decompression methods in generic data gz format, applicable to the field of data processing technology. The step of compression is as follows (S1): inputting original data, and performing block division processing on the original data, to obtain M data blocks (S11); using N1 threads in a preset first thread pool to compress said M data blocks, and during compression, reserving a preset space in a file header portion in a gz format, to obtain M copies of compressed data gzDi and the sizes of the data gzDi (S12); writing said M copies of compressed data gzDi into a disk in sequence, and writing the corresponding sizes of the M copies of data gzDi into the preset space in sequence, to obtain compressed data (S13). The step of decompression is as follows (S2): inputting the compressed data, reading the list information of the written sizes, and dividing the compressed data according to the list information of the sizes, to obtain M data blocks gzDi (S21); using N2 threads in a preset second thread pool to decompress said M data blocks gzDi, to obtain M copies of decompressed original data Di (S22); and connecting the decompressed original data Di in series according to the list information of the sizes to obtain complete original data (S23). The present method achieves the purpose of multi-thread compression and multi-thread decompression.
机译:通用数据gz格式的多线程压缩和解压缩方法,适用于数据处理技术领域。压缩步骤如下(S1):输入原始数据,并对原始数据进行块划分处理,得到M个数据块(S11);使用预设的第一线程池中的N1个线程来压缩所述M个数据块,并且在压缩期间,以gz格式在文件头部分中保留预设空间,以获得M个压缩数据副本gzDi和数据gzDi的大小( S12);将所述M个压缩数据gzDi的副本依次写入磁盘,并将M个数据gzDi的M副本的对应大小依次写入预设空间,以获得压缩数据(S13)。解压缩步骤如下(S2):输入压缩数据,读取写入大小的列表信息,并根据大小的列表信息划分压缩数据,得到M个数据块gzDi(S21);在预设的第二线程池中使用N2个线程对所述M个数据块gzDi进行解压缩,得到解压缩后的原始数据Di的M个副本(S22);根据所述大小的列表信息串联连接所述解压后的原始数据Di,以获得完整的原始数据(S23)。本发明达到了多线程压缩和多线程解压缩的目的。

著录项

  • 公开/公告号WO2019119336A1

    专利类型

  • 公开/公告日2019-06-27

    原文格式PDF

  • 申请/专利权人 SHENZHEN UNIVERSITY;

    申请/专利号WO2017CN117619

  • 发明设计人 ZHU ZEXUAN;SUN YIWEN;

    申请日2017-12-21

  • 分类号H03M7/30;

  • 国家 WO

  • 入库时间 2022-08-21 11:54:16

相似文献

  • 专利
  • 外文文献
  • 中文文献
获取专利

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号