extzstd 0.2 → 0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/HISTORY.ja.md +13 -0
- data/README.md +17 -14
- data/contrib/zstd/{NEWS → CHANGELOG} +115 -2
- data/contrib/zstd/CODE_OF_CONDUCT.md +5 -0
- data/contrib/zstd/Makefile +99 -53
- data/contrib/zstd/README.md +59 -39
- data/contrib/zstd/TESTING.md +1 -1
- data/contrib/zstd/appveyor.yml +17 -6
- data/contrib/zstd/lib/BUCK +29 -2
- data/contrib/zstd/lib/Makefile +118 -21
- data/contrib/zstd/lib/README.md +84 -44
- data/contrib/zstd/lib/common/bitstream.h +17 -33
- data/contrib/zstd/lib/common/compiler.h +62 -8
- data/contrib/zstd/lib/common/cpu.h +215 -0
- data/contrib/zstd/lib/common/debug.c +44 -0
- data/contrib/zstd/lib/common/debug.h +134 -0
- data/contrib/zstd/lib/common/entropy_common.c +16 -1
- data/contrib/zstd/lib/common/error_private.c +7 -0
- data/contrib/zstd/lib/common/fse.h +48 -44
- data/contrib/zstd/lib/common/fse_decompress.c +3 -3
- data/contrib/zstd/lib/common/huf.h +169 -113
- data/contrib/zstd/lib/common/mem.h +20 -2
- data/contrib/zstd/lib/common/pool.c +135 -49
- data/contrib/zstd/lib/common/pool.h +40 -21
- data/contrib/zstd/lib/common/threading.c +2 -2
- data/contrib/zstd/lib/common/threading.h +12 -12
- data/contrib/zstd/lib/common/xxhash.c +3 -2
- data/contrib/zstd/lib/common/zstd_common.c +3 -6
- data/contrib/zstd/lib/common/zstd_errors.h +17 -7
- data/contrib/zstd/lib/common/zstd_internal.h +76 -48
- data/contrib/zstd/lib/compress/fse_compress.c +89 -209
- data/contrib/zstd/lib/compress/hist.c +203 -0
- data/contrib/zstd/lib/compress/hist.h +95 -0
- data/contrib/zstd/lib/compress/huf_compress.c +188 -80
- data/contrib/zstd/lib/compress/zstd_compress.c +2500 -1203
- data/contrib/zstd/lib/compress/zstd_compress_internal.h +463 -62
- data/contrib/zstd/lib/compress/zstd_double_fast.c +321 -131
- data/contrib/zstd/lib/compress/zstd_double_fast.h +13 -4
- data/contrib/zstd/lib/compress/zstd_fast.c +335 -108
- data/contrib/zstd/lib/compress/zstd_fast.h +12 -6
- data/contrib/zstd/lib/compress/zstd_lazy.c +654 -313
- data/contrib/zstd/lib/compress/zstd_lazy.h +44 -16
- data/contrib/zstd/lib/compress/zstd_ldm.c +310 -420
- data/contrib/zstd/lib/compress/zstd_ldm.h +63 -26
- data/contrib/zstd/lib/compress/zstd_opt.c +773 -325
- data/contrib/zstd/lib/compress/zstd_opt.h +31 -5
- data/contrib/zstd/lib/compress/zstdmt_compress.c +1468 -518
- data/contrib/zstd/lib/compress/zstdmt_compress.h +96 -45
- data/contrib/zstd/lib/decompress/huf_decompress.c +518 -282
- data/contrib/zstd/lib/decompress/zstd_ddict.c +240 -0
- data/contrib/zstd/lib/decompress/zstd_ddict.h +44 -0
- data/contrib/zstd/lib/decompress/zstd_decompress.c +613 -1513
- data/contrib/zstd/lib/decompress/zstd_decompress_block.c +1311 -0
- data/contrib/zstd/lib/decompress/zstd_decompress_block.h +59 -0
- data/contrib/zstd/lib/decompress/zstd_decompress_internal.h +175 -0
- data/contrib/zstd/lib/dictBuilder/cover.c +194 -113
- data/contrib/zstd/lib/dictBuilder/cover.h +112 -0
- data/contrib/zstd/lib/dictBuilder/divsufsort.c +3 -3
- data/contrib/zstd/lib/dictBuilder/fastcover.c +740 -0
- data/contrib/zstd/lib/dictBuilder/zdict.c +142 -106
- data/contrib/zstd/lib/dictBuilder/zdict.h +115 -49
- data/contrib/zstd/lib/legacy/zstd_legacy.h +44 -12
- data/contrib/zstd/lib/legacy/zstd_v01.c +41 -10
- data/contrib/zstd/lib/legacy/zstd_v01.h +12 -7
- data/contrib/zstd/lib/legacy/zstd_v02.c +37 -12
- data/contrib/zstd/lib/legacy/zstd_v02.h +12 -7
- data/contrib/zstd/lib/legacy/zstd_v03.c +38 -12
- data/contrib/zstd/lib/legacy/zstd_v03.h +12 -7
- data/contrib/zstd/lib/legacy/zstd_v04.c +55 -174
- data/contrib/zstd/lib/legacy/zstd_v04.h +12 -7
- data/contrib/zstd/lib/legacy/zstd_v05.c +59 -31
- data/contrib/zstd/lib/legacy/zstd_v05.h +12 -7
- data/contrib/zstd/lib/legacy/zstd_v06.c +48 -20
- data/contrib/zstd/lib/legacy/zstd_v06.h +10 -5
- data/contrib/zstd/lib/legacy/zstd_v07.c +62 -29
- data/contrib/zstd/lib/legacy/zstd_v07.h +10 -5
- data/contrib/zstd/lib/zstd.h +1346 -832
- data/ext/extzstd.c +27 -19
- data/ext/extzstd_stream.c +20 -4
- data/ext/zstd_compress.c +1 -0
- data/ext/zstd_decompress.c +4 -0
- data/ext/zstd_dictbuilder.c +4 -0
- data/ext/zstd_dictbuilder_fastcover.c +5 -0
- data/lib/extzstd.rb +52 -220
- data/lib/extzstd/version.rb +1 -1
- metadata +21 -7
- data/contrib/zstd/circle.yml +0 -63
data/lib/extzstd/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: extzstd
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: '0.
|
4
|
+
version: '0.3'
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- dearblue
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2019-04-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|
@@ -26,7 +26,7 @@ dependencies:
|
|
26
26
|
version: '12.0'
|
27
27
|
description: 'unoficial ruby bindings for Zstandard (zstd) <https://github.com/facebook/zstd>.
|
28
28
|
|
29
|
-
'
|
29
|
+
'
|
30
30
|
email: dearblue@users.noreply.github.com
|
31
31
|
executables: []
|
32
32
|
extensions:
|
@@ -35,6 +35,7 @@ extra_rdoc_files:
|
|
35
35
|
- HISTORY.ja.md
|
36
36
|
- LICENSE
|
37
37
|
- README.md
|
38
|
+
- contrib/zstd/CHANGELOG
|
38
39
|
- contrib/zstd/LICENSE
|
39
40
|
- contrib/zstd/README.md
|
40
41
|
- contrib/zstd/lib/README.md
|
@@ -46,6 +47,7 @@ extra_rdoc_files:
|
|
46
47
|
- ext/zstd_compress.c
|
47
48
|
- ext/zstd_decompress.c
|
48
49
|
- ext/zstd_dictbuilder.c
|
50
|
+
- ext/zstd_dictbuilder_fastcover.c
|
49
51
|
- ext/zstd_legacy_v01.c
|
50
52
|
- ext/zstd_legacy_v02.c
|
51
53
|
- ext/zstd_legacy_v03.c
|
@@ -60,20 +62,23 @@ files:
|
|
60
62
|
- LICENSE
|
61
63
|
- README.md
|
62
64
|
- Rakefile
|
65
|
+
- contrib/zstd/CHANGELOG
|
66
|
+
- contrib/zstd/CODE_OF_CONDUCT.md
|
63
67
|
- contrib/zstd/CONTRIBUTING.md
|
64
68
|
- contrib/zstd/COPYING
|
65
69
|
- contrib/zstd/LICENSE
|
66
70
|
- contrib/zstd/Makefile
|
67
|
-
- contrib/zstd/NEWS
|
68
71
|
- contrib/zstd/README.md
|
69
72
|
- contrib/zstd/TESTING.md
|
70
73
|
- contrib/zstd/appveyor.yml
|
71
|
-
- contrib/zstd/circle.yml
|
72
74
|
- contrib/zstd/lib/BUCK
|
73
75
|
- contrib/zstd/lib/Makefile
|
74
76
|
- contrib/zstd/lib/README.md
|
75
77
|
- contrib/zstd/lib/common/bitstream.h
|
76
78
|
- contrib/zstd/lib/common/compiler.h
|
79
|
+
- contrib/zstd/lib/common/cpu.h
|
80
|
+
- contrib/zstd/lib/common/debug.c
|
81
|
+
- contrib/zstd/lib/common/debug.h
|
77
82
|
- contrib/zstd/lib/common/entropy_common.c
|
78
83
|
- contrib/zstd/lib/common/error_private.c
|
79
84
|
- contrib/zstd/lib/common/error_private.h
|
@@ -91,6 +96,8 @@ files:
|
|
91
96
|
- contrib/zstd/lib/common/zstd_errors.h
|
92
97
|
- contrib/zstd/lib/common/zstd_internal.h
|
93
98
|
- contrib/zstd/lib/compress/fse_compress.c
|
99
|
+
- contrib/zstd/lib/compress/hist.c
|
100
|
+
- contrib/zstd/lib/compress/hist.h
|
94
101
|
- contrib/zstd/lib/compress/huf_compress.c
|
95
102
|
- contrib/zstd/lib/compress/zstd_compress.c
|
96
103
|
- contrib/zstd/lib/compress/zstd_compress_internal.h
|
@@ -107,14 +114,21 @@ files:
|
|
107
114
|
- contrib/zstd/lib/compress/zstdmt_compress.c
|
108
115
|
- contrib/zstd/lib/compress/zstdmt_compress.h
|
109
116
|
- contrib/zstd/lib/decompress/huf_decompress.c
|
117
|
+
- contrib/zstd/lib/decompress/zstd_ddict.c
|
118
|
+
- contrib/zstd/lib/decompress/zstd_ddict.h
|
110
119
|
- contrib/zstd/lib/decompress/zstd_decompress.c
|
120
|
+
- contrib/zstd/lib/decompress/zstd_decompress_block.c
|
121
|
+
- contrib/zstd/lib/decompress/zstd_decompress_block.h
|
122
|
+
- contrib/zstd/lib/decompress/zstd_decompress_internal.h
|
111
123
|
- contrib/zstd/lib/deprecated/zbuff.h
|
112
124
|
- contrib/zstd/lib/deprecated/zbuff_common.c
|
113
125
|
- contrib/zstd/lib/deprecated/zbuff_compress.c
|
114
126
|
- contrib/zstd/lib/deprecated/zbuff_decompress.c
|
115
127
|
- contrib/zstd/lib/dictBuilder/cover.c
|
128
|
+
- contrib/zstd/lib/dictBuilder/cover.h
|
116
129
|
- contrib/zstd/lib/dictBuilder/divsufsort.c
|
117
130
|
- contrib/zstd/lib/dictBuilder/divsufsort.h
|
131
|
+
- contrib/zstd/lib/dictBuilder/fastcover.c
|
118
132
|
- contrib/zstd/lib/dictBuilder/zdict.c
|
119
133
|
- contrib/zstd/lib/dictBuilder/zdict.h
|
120
134
|
- contrib/zstd/lib/legacy/zstd_legacy.h
|
@@ -144,6 +158,7 @@ files:
|
|
144
158
|
- ext/zstd_compress.c
|
145
159
|
- ext/zstd_decompress.c
|
146
160
|
- ext/zstd_dictbuilder.c
|
161
|
+
- ext/zstd_dictbuilder_fastcover.c
|
147
162
|
- ext/zstd_legacy_v01.c
|
148
163
|
- ext/zstd_legacy_v02.c
|
149
164
|
- ext/zstd_legacy_v03.c
|
@@ -178,8 +193,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
178
193
|
- !ruby/object:Gem::Version
|
179
194
|
version: '0'
|
180
195
|
requirements: []
|
181
|
-
|
182
|
-
rubygems_version: 2.7.4
|
196
|
+
rubygems_version: 3.0.3
|
183
197
|
signing_key:
|
184
198
|
specification_version: 4
|
185
199
|
summary: ruby bindings for Zstandard (zstd)
|
data/contrib/zstd/circle.yml
DELETED
@@ -1,63 +0,0 @@
|
|
1
|
-
dependencies:
|
2
|
-
override:
|
3
|
-
- sudo dpkg --add-architecture i386
|
4
|
-
- sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test; sudo apt-get -y -qq update
|
5
|
-
- sudo apt-get -y install gcc-powerpc-linux-gnu gcc-arm-linux-gnueabi libc6-dev-armel-cross gcc-aarch64-linux-gnu libc6-dev-arm64-cross
|
6
|
-
|
7
|
-
test:
|
8
|
-
override:
|
9
|
-
- ? |
|
10
|
-
if [[ "$CIRCLE_NODE_INDEX" == "0" ]] ; then cc -v; CFLAGS="-O0 -Werror" make all && make clean; fi &&
|
11
|
-
if [[ "$CIRCLE_NODE_TOTAL" < "2" ]] || [[ "$CIRCLE_NODE_INDEX" == "1" ]]; then make gnu90build && make clean; fi
|
12
|
-
:
|
13
|
-
parallel: true
|
14
|
-
- ? |
|
15
|
-
if [[ "$CIRCLE_NODE_INDEX" == "0" ]] ; then make c99build && make clean; fi &&
|
16
|
-
if [[ "$CIRCLE_NODE_TOTAL" < "2" ]] || [[ "$CIRCLE_NODE_INDEX" == "1" ]]; then make gnu99build && make clean; fi
|
17
|
-
:
|
18
|
-
parallel: true
|
19
|
-
- ? |
|
20
|
-
if [[ "$CIRCLE_NODE_INDEX" == "0" ]] ; then make c11build && make clean; fi &&
|
21
|
-
if [[ "$CIRCLE_NODE_TOTAL" < "2" ]] || [[ "$CIRCLE_NODE_INDEX" == "1" ]]; then make ppc64build && make clean; fi
|
22
|
-
:
|
23
|
-
parallel: true
|
24
|
-
- ? |
|
25
|
-
if [[ "$CIRCLE_NODE_INDEX" == "0" ]] ; then make aarch64build && make clean; fi &&
|
26
|
-
if [[ "$CIRCLE_NODE_TOTAL" < "2" ]] || [[ "$CIRCLE_NODE_INDEX" == "1" ]]; then make ppcbuild && make clean; fi
|
27
|
-
:
|
28
|
-
parallel: true
|
29
|
-
- ? |
|
30
|
-
if [[ "$CIRCLE_NODE_INDEX" == "0" ]] ; then make -j regressiontest && make clean; fi &&
|
31
|
-
if [[ "$CIRCLE_NODE_TOTAL" < "2" ]] || [[ "$CIRCLE_NODE_INDEX" == "1" ]]; then make armbuild && make clean; fi
|
32
|
-
:
|
33
|
-
parallel: true
|
34
|
-
- ? |
|
35
|
-
if [[ "$CIRCLE_NODE_INDEX" == "0" ]] ; then make shortest && make clean; fi &&
|
36
|
-
if [[ "$CIRCLE_NODE_TOTAL" < "2" ]] || [[ "$CIRCLE_NODE_INDEX" == "1" ]]; then make -C tests test-legacy test-longmatch test-symbols && make clean; fi
|
37
|
-
:
|
38
|
-
parallel: true
|
39
|
-
- ? |
|
40
|
-
if [[ "$CIRCLE_NODE_INDEX" == "0" ]] ; then make cxxtest && make clean; fi &&
|
41
|
-
if [[ "$CIRCLE_NODE_TOTAL" < "2" ]] || [[ "$CIRCLE_NODE_INDEX" == "1" ]]; then make -C lib libzstd-nomt && make clean; fi
|
42
|
-
:
|
43
|
-
parallel: true
|
44
|
-
|
45
|
-
post:
|
46
|
-
- echo Circle CI tests finished
|
47
|
-
|
48
|
-
# Longer tests
|
49
|
-
#- make -C tests test-zstd-nolegacy && make clean
|
50
|
-
#- pyenv global 3.4.4; make -C tests versionsTest && make clean
|
51
|
-
#- make zlibwrapper && make clean
|
52
|
-
#- gcc -v; make -C tests test32 MOREFLAGS="-I/usr/include/x86_64-linux-gnu" && make clean
|
53
|
-
#- make uasan && make clean
|
54
|
-
#- make asan32 && make clean
|
55
|
-
#- make -C tests test32 CC=clang MOREFLAGS="-g -fsanitize=address -I/usr/include/x86_64-linux-gnu"
|
56
|
-
# Valgrind tests
|
57
|
-
#- CFLAGS="-O1 -g" make -C zlibWrapper valgrindTest && make clean
|
58
|
-
#- make -C tests valgrindTest && make clean
|
59
|
-
# ARM, AArch64, PowerPC, PowerPC64 tests
|
60
|
-
#- make ppctest && make clean
|
61
|
-
#- make ppc64test && make clean
|
62
|
-
#- make armtest && make clean
|
63
|
-
#- make aarch64test && make clean
|