hyperll 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/ext/hyperll/delta_bytes.c +0 -3
- data/ext/hyperll/hyper_log_log_plus.c +1 -2
- data/ext/hyperll/varint.c +3 -2
- data/lib/hyperll/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 235467e81d8c9d27bbcf496c0f842b7e7d0209cc
|
4
|
+
data.tar.gz: 8023a87ad50ae7d5ba9c9d715cf6844b75c889f9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d9d41c4817d783199afe8b191455fd39b6891a883cceaf6c424ef3eb42f6d384a6083a60e40f41c9dd3564de6c36c4ec4185d309cb72a8779e6e90d6bcc60a7c
|
7
|
+
data.tar.gz: 944e54ea9644334ce6d684570e98697348c52c89f654e4c691db43a0a939b543206385aa1d8d5af2845f0a829566c1d536b16e39a2df5384416d489875118a85
|
data/ext/hyperll/delta_bytes.c
CHANGED
@@ -65,9 +65,6 @@ static VALUE rb_delta_bytes_uncompress(VALUE self, VALUE rcompressed) {
|
|
65
65
|
compressed[i] = (uint8_t)NUM2INT(rb_ary_entry(rcompressed, i));
|
66
66
|
}
|
67
67
|
|
68
|
-
int offset = 0;
|
69
|
-
int len = 0;
|
70
|
-
|
71
68
|
uint32_t *values = (uint32_t*)calloc(rlen, sizeof(uint32_t));
|
72
69
|
int vlen = delta_bytes_uncompress(compressed, rlen, values);
|
73
70
|
if (vlen < 0) {
|
@@ -117,8 +117,7 @@ void hyperllp_init(hyperllp *hllp, int p, int sp) {
|
|
117
117
|
hllp->sparse_set = ALLOC(sparse_set);
|
118
118
|
|
119
119
|
int sm = 1 << sp;
|
120
|
-
|
121
|
-
sparse_set_init(hllp->sparse_set, sm, capacity);
|
120
|
+
sparse_set_init(hllp->sparse_set, sm, count);
|
122
121
|
} else {
|
123
122
|
hllp->sparse_set = NULL;
|
124
123
|
}
|
data/ext/hyperll/varint.c
CHANGED
@@ -21,8 +21,9 @@ uint32_t varint_read_unsigned(uint8_t bytes[], int maxlen, int *len) {
|
|
21
21
|
return 0;
|
22
22
|
}
|
23
23
|
|
24
|
-
uint32_t value
|
25
|
-
|
24
|
+
uint32_t value = 0;
|
25
|
+
int i = 0;
|
26
|
+
int b = 0;
|
26
27
|
|
27
28
|
while (((b = bytes[i]) & 0x80) != 0) {
|
28
29
|
value |= (b & 0x7F) << (i * 7);
|
data/lib/hyperll/version.rb
CHANGED