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
Copy file name to clipboardExpand all lines: .travis.yml
+49-22Lines changed: 49 additions & 22 deletions
Original file line number
Diff line number
Diff line change
@@ -8,11 +8,7 @@ matrix:
8
8
9
9
10
10
# Container-based Ubuntu 12.04 LTS Server Edition 64 bit (doesn't support 32-bit includes)
11
-
- env: Ubu=12.04cont Cmd="make test && make clean && make travis-install"
12
-
os: linux
13
-
sudo: false
14
-
15
-
- env: Ubu=12.04cont Cmd="make zlibwrapper && make clean && make -C tests test-zstd-nolegacy && make clean && make cmaketest && make clean && make -C contrib/pzstd googletest pzstd tests check && make -C contrib/pzstd clean"
11
+
- env: Ubu=12.04cont Cmd="make zlibwrapper && make clean && make -C tests test-symbols && make clean && make -C tests test-zstd-nolegacy && make clean && make cmaketest && make clean && make -C contrib/pzstd googletest pzstd tests check && make -C contrib/pzstd clean"
16
12
os: linux
17
13
sudo: false
18
14
language: cpp
@@ -37,7 +33,7 @@ matrix:
37
33
38
34
39
35
# Standard Ubuntu 12.04 LTS Server Edition 64 bit
40
-
- env: Ubu=12.04 Cmd="make -C programs zstd-small zstd-decompress zstd-compress && make -C tests test-gzstd && make -C programs clean && make -C tests versionsTest"
36
+
- env: Ubu=12.04 Cmd="make -C programs zstd-small zstd-decompress zstd-compress && make -C programs clean && make -C tests versionsTest"
41
37
os: linux
42
38
sudo: required
43
39
@@ -69,7 +65,7 @@ matrix:
69
65
70
66
71
67
# Ubuntu 14.04 LTS Server Edition 64 bit
72
-
- env: Ubu=14.04 Cmd="make armtest && make clean && make aarch64test"
68
+
- env: Ubu=14.04 Cmd="make armtest"
73
69
dist: trusty
74
70
sudo: required
75
71
addons:
@@ -78,11 +74,30 @@ matrix:
78
74
- qemu-system-arm
79
75
- qemu-user-static
80
76
- gcc-arm-linux-gnueabi
81
-
- libc6-dev-armel-cross
77
+
- libc6-dev-armel-cross
78
+
79
+
- env: Ubu=14.04 Cmd="make aarch64test"
80
+
dist: trusty
81
+
sudo: required
82
+
addons:
83
+
apt:
84
+
packages:
85
+
- qemu-system-arm
86
+
- qemu-user-static
82
87
- gcc-aarch64-linux-gnu
83
88
- libc6-dev-arm64-cross
84
89
85
-
- env: Ubu=14.04 Cmd='make ppctest && make clean && make ppc64test'
90
+
- env: Ubu=14.04 Cmd='make ppctest'
91
+
dist: trusty
92
+
sudo: required
93
+
addons:
94
+
apt:
95
+
packages:
96
+
- qemu-system-ppc
97
+
- qemu-user-static
98
+
- gcc-powerpc-linux-gnu
99
+
100
+
- env: Ubu=14.04 Cmd='make ppc64test'
86
101
dist: trusty
87
102
sudo: required
88
103
addons:
@@ -101,33 +116,43 @@ matrix:
101
116
packages:
102
117
- valgrind
103
118
104
-
- env: Ubu=14.04 Cmd="make gpptest && make clean && make gnu90test && make clean && make c99test && make clean && make gnu99test && make clean && make clangtest && make clean && make -C contrib/pzstd googletest32 && make -C contrib/pzstd all32 && make -C contrib/pzstd check && make -C contrib/pzstd clean"
119
+
120
+
121
+
# other feature branches => short tests
122
+
- env: Ubu=12.04cont Cmd="make test && make clean && make travis-install"
123
+
os: linux
124
+
sudo: false
125
+
126
+
- env: Ubu=14.04 Cmd="make -C tests test32"
105
127
os: linux
106
128
dist: trusty
107
129
sudo: required
108
-
install:
109
-
- export CXX="g++-4.8" CC="gcc-4.8"
110
130
addons:
111
131
apt:
112
132
packages:
113
133
- libc6-dev-i386
114
-
- g++-multilib
115
-
- gcc-4.8
116
-
- gcc-4.8-multilib
117
-
- g++-4.8
118
-
- g++-4.8-multilib
134
+
- gcc-multilib
119
135
120
-
- env: Ubu=14.04 Cmd="make -C tests test32"
136
+
- env: Ubu=14.04 Cmd="make gpptest && make clean && make gnu90test && make clean
137
+
&& make c99test && make clean && make gnu99test && make clean
138
+
&& make clangtest && make clean && make -C contrib/pzstd googletest32
139
+
&& make -C contrib/pzstd all32 && make -C contrib/pzstd check && make -C contrib/pzstd clean"
121
140
os: linux
122
141
dist: trusty
123
142
sudo: required
143
+
install:
144
+
- export CXX="g++-4.8" CC="gcc-4.8"
124
145
addons:
125
146
apt:
126
147
packages:
127
148
- libc6-dev-i386
128
-
- gcc-multilib
149
+
- g++-multilib
150
+
- gcc-4.8
151
+
- gcc-4.8-multilib
152
+
- g++-4.8
153
+
- g++-4.8-multilib
129
154
130
-
- env: Ubu=14.04 Cmd="make gcc5test && make clean && make gcc6test"
155
+
- env: Ubu=14.04 Cmd="make gcc5test && make clean && make gcc6test && make clean && make -C tests dll"
131
156
os: linux
132
157
dist: trusty
133
158
sudo: required
@@ -144,5 +169,7 @@ matrix:
144
169
145
170
script:
146
171
- JOB_NUMBER=$(echo $TRAVIS_JOB_NUMBER | sed -e 's:[0-9][0-9]*\.\(.*\):\1:')
147
-
# - if [ $JOB_NUMBER -eq 9 ] || [ $JOB_NUMBER -eq 10 ]; then sh -c "$Cmd"; fi
148
-
- sh -c "$Cmd"
172
+
# dev => normal tests; other feature branches => short tests (number > 11)
173
+
- if [ "$TRAVIS_PULL_REQUEST" = "true" ] || [ $JOB_NUMBER -gt 11 ] || [ "$TRAVIS_BRANCH" = "dev" ] && [ "$TRAVIS_BRANCH" != "master" ]; then sh -c "$Cmd"; fi
174
+
# master => long tests, as this is the final step towards a Release
175
+
- if [ "$TRAVIS_BRANCH" = "master" ]; then FUZZERTEST=-T10mn sh -c "$Cmd"; fi
Copy file name to clipboardExpand all lines: README.md
+20-10Lines changed: 20 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
targeting real-time compression scenarios at zlib-level and better compression ratios.
3
3
4
4
It is provided as an open-source BSD-licensed **C** library,
5
-
and a command line utility producing and decoding `.zst`compressed files.
5
+
and a command line utility producing and decoding `.zst`and `.gz` files.
6
6
For other programming languages,
7
7
you can consult a list of known ports on [Zstandard homepage](http://www.zstd.net/#other-languages).
8
8
@@ -47,18 +47,27 @@ For a larger picture including very slow modes, [click on this link](doc/images/
47
47
48
48
### The case for Small Data compression
49
49
50
-
Previous charts provide results applicable to typical file and stream scenarios (several MB). Small data comes with different perspectives. The smaller the amount of data to compress, the more difficult it is to achieve any significant compression.
50
+
Previous charts provide results applicable to typical file and stream scenarios (several MB). Small data comes with different perspectives.
51
51
52
-
This problem is common to many compression algorithms. The reason is, compression algorithms learn from past data how to compress future data. But at the beginning of a new file, there is no "past" to build upon.
52
+
The smaller the amount of data to compress, the more difficult it is to compress. This problem is common to all compression algorithms, and reason is, compression algorithms learn from past data how to compress future data. But at the beginning of a new data set, there is no "past" to build upon.
53
53
54
-
To solve this situation, Zstd offers a __training mode__, which can be used to tune the algorithm for a selected type of data, by providing it with a few samples. The result of the training is stored in a file called "dictionary", which can be loaded before compression and decompression. Using this dictionary, the compression ratio achievable on small data improves dramatically:
54
+
To solve this situation, Zstd offers a __training mode__, which can be used to tune the algorithm for a selected type of data.
55
+
Training Zstandard is achieved by provide it with a few samples (one file per sample). The result of this training is stored in a file called "dictionary", which must be loaded before compression and decompression.
56
+
Using this dictionary, the compression ratio achievable on small data improves dramatically.
55
57
56
-

58
+
The following example uses the `github-users`[sample set](https://www.dropbox.com/s/mnktkomhkjbf1i2/github_users.tar.zst?dl=0), created from [github public API](https://developer.github.com/v3/users/#get-all-users).
59
+
It consists of roughly 10K records weighting about 1KB each.
57
60
58
-
These compression gains are achieved while simultaneously providing faster compression and decompression speeds.
61
+
Compression Ratio | Compression Speed | Decompression Speed
Dictionary works if there is some correlation in a family of small data (there is no _universal dictionary_).
61
-
Hence, deploying one dictionary per type of data will provide the greatest benefits. Dictionary gains are mostly effective in the first few KB. Then, the compression algorithm will rely more and more on previously decoded content to compress the rest of the file.
65
+
66
+
These compression gains are achieved while simultaneously providing _faster_ compression and decompression speeds.
67
+
68
+
Training works if there is some correlation in a family of small data samples. The more data-specific a dictionary is, the more efficient it is (there is no _universal dictionary_).
69
+
Hence, deploying one dictionary per type of data will provide the greatest benefits.
70
+
Dictionary gains are mostly effective in the first few KB. Then, the compression algorithm will gradually use previously decoded content to better compress the rest of the file.
62
71
63
72
#### Dictionary compression How To :
64
73
@@ -68,11 +77,12 @@ Hence, deploying one dictionary per type of data will provide the greatest benef
0 commit comments