|
|
hace 2 años | |
|---|---|---|
| doc | hace 8 años | |
| LICENSE | hace 8 años | |
| README.md | hace 5 años | |
| README_ZH.md | hace 5 años | |
| SConscript | hace 8 años | |
| quicklz.c | hace 8 años | |
| quicklz.h | hace 8 años | |
| quicklz_sample.c | hace 2 años |
中文页 | English
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.
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
Enable using quizklz sample;latest_version.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!
[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