extzstd 0.2 → 0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (88) hide show
  1. checksums.yaml +4 -4
  2. data/HISTORY.ja.md +13 -0
  3. data/README.md +17 -14
  4. data/contrib/zstd/{NEWS → CHANGELOG} +115 -2
  5. data/contrib/zstd/CODE_OF_CONDUCT.md +5 -0
  6. data/contrib/zstd/Makefile +99 -53
  7. data/contrib/zstd/README.md +59 -39
  8. data/contrib/zstd/TESTING.md +1 -1
  9. data/contrib/zstd/appveyor.yml +17 -6
  10. data/contrib/zstd/lib/BUCK +29 -2
  11. data/contrib/zstd/lib/Makefile +118 -21
  12. data/contrib/zstd/lib/README.md +84 -44
  13. data/contrib/zstd/lib/common/bitstream.h +17 -33
  14. data/contrib/zstd/lib/common/compiler.h +62 -8
  15. data/contrib/zstd/lib/common/cpu.h +215 -0
  16. data/contrib/zstd/lib/common/debug.c +44 -0
  17. data/contrib/zstd/lib/common/debug.h +134 -0
  18. data/contrib/zstd/lib/common/entropy_common.c +16 -1
  19. data/contrib/zstd/lib/common/error_private.c +7 -0
  20. data/contrib/zstd/lib/common/fse.h +48 -44
  21. data/contrib/zstd/lib/common/fse_decompress.c +3 -3
  22. data/contrib/zstd/lib/common/huf.h +169 -113
  23. data/contrib/zstd/lib/common/mem.h +20 -2
  24. data/contrib/zstd/lib/common/pool.c +135 -49
  25. data/contrib/zstd/lib/common/pool.h +40 -21
  26. data/contrib/zstd/lib/common/threading.c +2 -2
  27. data/contrib/zstd/lib/common/threading.h +12 -12
  28. data/contrib/zstd/lib/common/xxhash.c +3 -2
  29. data/contrib/zstd/lib/common/zstd_common.c +3 -6
  30. data/contrib/zstd/lib/common/zstd_errors.h +17 -7
  31. data/contrib/zstd/lib/common/zstd_internal.h +76 -48
  32. data/contrib/zstd/lib/compress/fse_compress.c +89 -209
  33. data/contrib/zstd/lib/compress/hist.c +203 -0
  34. data/contrib/zstd/lib/compress/hist.h +95 -0
  35. data/contrib/zstd/lib/compress/huf_compress.c +188 -80
  36. data/contrib/zstd/lib/compress/zstd_compress.c +2500 -1203
  37. data/contrib/zstd/lib/compress/zstd_compress_internal.h +463 -62
  38. data/contrib/zstd/lib/compress/zstd_double_fast.c +321 -131
  39. data/contrib/zstd/lib/compress/zstd_double_fast.h +13 -4
  40. data/contrib/zstd/lib/compress/zstd_fast.c +335 -108
  41. data/contrib/zstd/lib/compress/zstd_fast.h +12 -6
  42. data/contrib/zstd/lib/compress/zstd_lazy.c +654 -313
  43. data/contrib/zstd/lib/compress/zstd_lazy.h +44 -16
  44. data/contrib/zstd/lib/compress/zstd_ldm.c +310 -420
  45. data/contrib/zstd/lib/compress/zstd_ldm.h +63 -26
  46. data/contrib/zstd/lib/compress/zstd_opt.c +773 -325
  47. data/contrib/zstd/lib/compress/zstd_opt.h +31 -5
  48. data/contrib/zstd/lib/compress/zstdmt_compress.c +1468 -518
  49. data/contrib/zstd/lib/compress/zstdmt_compress.h +96 -45
  50. data/contrib/zstd/lib/decompress/huf_decompress.c +518 -282
  51. data/contrib/zstd/lib/decompress/zstd_ddict.c +240 -0
  52. data/contrib/zstd/lib/decompress/zstd_ddict.h +44 -0
  53. data/contrib/zstd/lib/decompress/zstd_decompress.c +613 -1513
  54. data/contrib/zstd/lib/decompress/zstd_decompress_block.c +1311 -0
  55. data/contrib/zstd/lib/decompress/zstd_decompress_block.h +59 -0
  56. data/contrib/zstd/lib/decompress/zstd_decompress_internal.h +175 -0
  57. data/contrib/zstd/lib/dictBuilder/cover.c +194 -113
  58. data/contrib/zstd/lib/dictBuilder/cover.h +112 -0
  59. data/contrib/zstd/lib/dictBuilder/divsufsort.c +3 -3
  60. data/contrib/zstd/lib/dictBuilder/fastcover.c +740 -0
  61. data/contrib/zstd/lib/dictBuilder/zdict.c +142 -106
  62. data/contrib/zstd/lib/dictBuilder/zdict.h +115 -49
  63. data/contrib/zstd/lib/legacy/zstd_legacy.h +44 -12
  64. data/contrib/zstd/lib/legacy/zstd_v01.c +41 -10
  65. data/contrib/zstd/lib/legacy/zstd_v01.h +12 -7
  66. data/contrib/zstd/lib/legacy/zstd_v02.c +37 -12
  67. data/contrib/zstd/lib/legacy/zstd_v02.h +12 -7
  68. data/contrib/zstd/lib/legacy/zstd_v03.c +38 -12
  69. data/contrib/zstd/lib/legacy/zstd_v03.h +12 -7
  70. data/contrib/zstd/lib/legacy/zstd_v04.c +55 -174
  71. data/contrib/zstd/lib/legacy/zstd_v04.h +12 -7
  72. data/contrib/zstd/lib/legacy/zstd_v05.c +59 -31
  73. data/contrib/zstd/lib/legacy/zstd_v05.h +12 -7
  74. data/contrib/zstd/lib/legacy/zstd_v06.c +48 -20
  75. data/contrib/zstd/lib/legacy/zstd_v06.h +10 -5
  76. data/contrib/zstd/lib/legacy/zstd_v07.c +62 -29
  77. data/contrib/zstd/lib/legacy/zstd_v07.h +10 -5
  78. data/contrib/zstd/lib/zstd.h +1346 -832
  79. data/ext/extzstd.c +27 -19
  80. data/ext/extzstd_stream.c +20 -4
  81. data/ext/zstd_compress.c +1 -0
  82. data/ext/zstd_decompress.c +4 -0
  83. data/ext/zstd_dictbuilder.c +4 -0
  84. data/ext/zstd_dictbuilder_fastcover.c +5 -0
  85. data/lib/extzstd.rb +52 -220
  86. data/lib/extzstd/version.rb +1 -1
  87. metadata +21 -7
  88. data/contrib/zstd/circle.yml +0 -63
@@ -1,3 +1,3 @@
1
1
  module Zstd
2
- VERSION = "0.2"
2
+ VERSION = "0.3"
3
3
  end
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.2'
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: 2018-02-01 00:00:00.000000000 Z
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
- rubyforge_project:
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)
@@ -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