You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 26, 2021. It is now read-only.
fast and lightweight compression library and utility.
Introduction
Libzling is an improved lightweight compression utility and library. libzling uses fast order-1 ROLZ (16MB block size and 10MB dictionary size) followed with Huffman encoding, making it 3 times as fast as gzip on compressing, while still getting much better compression ratio and decompression speed.
CPU: Intel(R) Xeon(R) CPU E5-2620 v3 @ 2.40GHz
MEM: 65726592 kB
OS: Linux 2.6.32.43-tlinux-1.0.14-default
Tool
Encode
Decode
Compressed Size
status
xz
1m23.838s
0m2.265s
26375764
PASS
bzip2
0m10.680s
0m4.633s
29008758
PASS
libzling e4
0m4.058s
0m0.989s
29721410
PASS
libzling e3
0m3.383s
0m1.007s
29999672
PASS
libzling e2
0m2.860s
0m1.021s
30477912
PASS
libzling e1
0m2.504s
0m1.021s
30855731
PASS
libzling e0
0m2.208s
0m1.043s
31456189
PASS
gzip
0m6.502s
0m1.089s
36518322
PASS
Build & Install
You can build and install libzling automatically by cmake with the following command:
cd ./build
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/path/to/install
make
make install
Usage
Libling provides simple and lightweight interface. here is a simple program showing the basic usage of libzling. (compiled with g++ -Wall -O3 zling_sample.cpp -o zling_sample -lzling)