zstd-ruby 1.5.4.1 → 1.5.5.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +2 -0
- data/README.md +3 -3
- data/ext/zstdruby/extconf.rb +2 -0
- data/ext/zstdruby/libzstd/common/allocations.h +55 -0
- data/ext/zstdruby/libzstd/common/bits.h +30 -5
- data/ext/zstdruby/libzstd/common/bitstream.h +1 -1
- data/ext/zstdruby/libzstd/common/compiler.h +4 -0
- data/ext/zstdruby/libzstd/common/pool.c +1 -1
- data/ext/zstdruby/libzstd/common/threading.c +1 -1
- data/ext/zstdruby/libzstd/common/zstd_common.c +0 -35
- data/ext/zstdruby/libzstd/common/zstd_internal.h +0 -5
- data/ext/zstdruby/libzstd/compress/zstd_compress.c +209 -104
- data/ext/zstdruby/libzstd/compress/zstd_compress_internal.h +67 -13
- data/ext/zstdruby/libzstd/compress/zstd_cwksp.h +123 -59
- data/ext/zstdruby/libzstd/compress/zstd_lazy.c +92 -62
- data/ext/zstdruby/libzstd/compress/zstd_opt.c +2 -0
- data/ext/zstdruby/libzstd/compress/zstdmt_compress.c +5 -4
- data/ext/zstdruby/libzstd/decompress/huf_decompress.c +4 -4
- data/ext/zstdruby/libzstd/decompress/zstd_ddict.c +1 -0
- data/ext/zstdruby/libzstd/decompress/zstd_decompress.c +41 -38
- data/ext/zstdruby/libzstd/decompress/zstd_decompress_block.c +16 -17
- data/ext/zstdruby/libzstd/decompress/zstd_decompress_block.h +5 -0
- data/ext/zstdruby/libzstd/dictBuilder/zdict.c +2 -2
- data/ext/zstdruby/libzstd/zstd.h +258 -212
- data/ext/zstdruby/streaming_compress.c +23 -3
- data/ext/zstdruby/streaming_decompress.c +23 -3
- data/lib/zstd-ruby/version.rb +1 -1
- metadata +3 -2
@@ -10,7 +10,11 @@ static void
|
|
10
10
|
streaming_decompress_mark(void *p)
|
11
11
|
{
|
12
12
|
struct streaming_decompress_t *sd = p;
|
13
|
+
#ifdef HAVE_RB_GC_MARK_MOVABLE
|
14
|
+
rb_gc_mark_movable(sd->buf);
|
15
|
+
#else
|
13
16
|
rb_gc_mark(sd->buf);
|
17
|
+
#endif
|
14
18
|
}
|
15
19
|
|
16
20
|
static void
|
@@ -30,10 +34,26 @@ streaming_decompress_memsize(const void *p)
|
|
30
34
|
return sizeof(struct streaming_decompress_t);
|
31
35
|
}
|
32
36
|
|
37
|
+
#ifdef HAVE_RB_GC_MARK_MOVABLE
|
38
|
+
static size_t
|
39
|
+
streaming_decompress_compact(void *p)
|
40
|
+
{
|
41
|
+
struct streaming_decompress_t *sd = p;
|
42
|
+
sd->buf = rb_gc_location(sd->buf);
|
43
|
+
}
|
44
|
+
#endif
|
45
|
+
|
33
46
|
static const rb_data_type_t streaming_decompress_type = {
|
34
|
-
|
35
|
-
|
36
|
-
|
47
|
+
"streaming_decompress",
|
48
|
+
{
|
49
|
+
streaming_decompress_mark,
|
50
|
+
streaming_decompress_free,
|
51
|
+
streaming_decompress_memsize,
|
52
|
+
#ifdef HAVE_RB_GC_MARK_MOVABLE
|
53
|
+
streaming_decompress_compact,
|
54
|
+
#endif
|
55
|
+
},
|
56
|
+
0, 0, RUBY_TYPED_FREE_IMMEDIATELY
|
37
57
|
};
|
38
58
|
|
39
59
|
static VALUE
|
data/lib/zstd-ruby/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: zstd-ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.5.
|
4
|
+
version: 1.5.5.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- SpringMT
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-03-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -87,6 +87,7 @@ files:
|
|
87
87
|
- bin/setup
|
88
88
|
- ext/zstdruby/common.h
|
89
89
|
- ext/zstdruby/extconf.rb
|
90
|
+
- ext/zstdruby/libzstd/common/allocations.h
|
90
91
|
- ext/zstdruby/libzstd/common/bits.h
|
91
92
|
- ext/zstdruby/libzstd/common/bitstream.h
|
92
93
|
- ext/zstdruby/libzstd/common/compiler.h
|