Fără Descriere

vandoul 6b8af5d41c fix the sample failed to compile. (#6) 2 ani în urmă
doc 81eb00eaf5 add quicklz README.md 8 ani în urmă
LICENSE 7d2036e7e9 Initial commit 8 ani în urmă
README.md 2a88171307 【增加】增加英文 readme 5 ani în urmă
README_ZH.md 2a88171307 【增加】增加英文 readme 5 ani în urmă
SConscript ed4dacad68 add quicklz compress and decompress sample 8 ani în urmă
quicklz.c ceab880d15 Add the quicklz package 8 ani în urmă
quicklz.h c3ac810335 update quicklz sample, modify the padding definition 8 ani în urmă
quicklz_sample.c 6b8af5d41c fix the sample failed to compile. (#6) 2 ani în urmă

README.md

QuickLZ

中文页 | English

1. Introduction

QuickLZ is known as the fastest compression library in the world, with a speed of 308 Mbyte/s per core, simple to use and easy to integrate. This quicklz library is RT-thread for the official qiuicklz C library Porting. For more information about quicklz, please refer to http://www.quicklz.com.

2. How to obtain

  • Obtain by Git: git clone https://github.com/RT-Thread-packages/quicklz.git

  • env tool to assist download: menuconfig package path: RT-Thread online package -> miscellaneous package -> QucikLZ

3. Example introduction

3.1 Get examples

  • Configure the enable sample option Enable using quizklz sample;
  • Configure the compression level option, set to level 1 (there are three levels 1/2/3, level 1 has the fastest compression speed and the smallest compression ratio, and level 3 has the fastest compression speed and the largest compression ratio);
  • The configuration package version is selected as the latest version latest_version.

3.2 Run example

This example is a simple file compression and decompression routine, which depends on the file system. The commands used are two -c and -d. The -c command compresses one file to another, The -d command decompresses a file to another file. Usage: msh cmd qlz_test -c /file.bin /file.cmprs.bin qlz_test -d /file.cmprs.bin /file_dcmprs.bin

msh />qlz_test -c /file.bin /file.cmprs.bin
[qlz]compress start: >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>>>>>>>>>>>>
[qlz]compressed 469848 bytes into 363495 bytes, compression ratio is 77%!
msh />
msh />qlz_test -d /file.cmprs.bin /file_dcmprs.bin
[qlz]decompress start: >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>>>>>>>>>>>>
[qlz]decompressed 363495 bytes into 469848 bytes!

4. Common problems

4.1 Out of memory problem

[qlz] No memory for state_compress struct, need 36868 byte, or you can change QLZ_HASH_VALUES to 1024!

Reason: The memory space required for quicklz library compression is relatively large, and the device memory space is insufficient Solution: Modify the size of QLZ_HASH_VALUES under the current level in the quicklz.h file

5. Reference materials