parket 0.2.0 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +11 -0
- data/Cargo.lock +1 -1
- data/README.md +1 -1
- data/ext/parket/Cargo.toml +1 -1
- data/ext/parket/src/cursor.rs +15 -1
- data/lib/parket/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 5647f9eecba6bfd0a68222c1065f460e8d7e902061d3405b6f4437fdb67ac51b
|
|
4
|
+
data.tar.gz: 6abff37fa2bb48c17f7debd8e0ea2803225e31e634c4397446160b928cc71ee5
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 4774ae55dcf2ebafcdf15b89aef5e438f5cf582bd1bcc7f0fbabebf3afbadc51a73300c160b3bbc604b6c0da3a700e243bbf2aa8a551ae84ce4b318f14c43b07
|
|
7
|
+
data.tar.gz: f34ead333cd3d5be84795b7d7a79353f91c899b345dc01d3d98540b8fa932a16fcff319fa6f7315a3f6fcc14ba406be3a565e67021087edbdfee739ec5908035
|
data/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,17 @@
|
|
|
3
3
|
Parket follows [Semantic Versioning](https://semver.org/). Until 1.0 a minor
|
|
4
4
|
release may change the API; the changes are listed here.
|
|
5
5
|
|
|
6
|
+
## 0.2.1 - 2026-12-01
|
|
7
|
+
|
|
8
|
+
- `Column#to_buffer` no longer raises `RuntimeError: scan re-entered
|
|
9
|
+
through a continuation after it moved on` where there was no
|
|
10
|
+
continuation. In 0.2.0 a read whose wait for its decode threads came
|
|
11
|
+
just after a signal arrived, or just after Ruby noted that another
|
|
12
|
+
thread wanted the GVL, took a wait that Ruby did not make for a read
|
|
13
|
+
that was over. It was rare: about one read in ten thousand with a
|
|
14
|
+
signal every 0.2 ms. The read can be repeated. `each_row`, `each_batch`
|
|
15
|
+
and writing were not affected, and neither was 0.1.
|
|
16
|
+
|
|
6
17
|
## 0.2.0 - 2026-12-01
|
|
7
18
|
|
|
8
19
|
The write path: `Parket.write`. Reading is as in 0.1, but for the fix
|
data/Cargo.lock
CHANGED
data/README.md
CHANGED
|
@@ -2697,7 +2697,7 @@ Rake tasks:
|
|
|
2697
2697
|
| task | what it does |
|
|
2698
2698
|
|---|---|
|
|
2699
2699
|
| `rake compile` | Builds the extension into `lib/parket/`. |
|
|
2700
|
-
| `rake test` | The suite, with the default settings, in two processes: `test/gc_test.rb` and `test/write_gc_test.rb`, whose tests run under `GC.stress`, in one of their own (`rake test:stressed`), where the heap is small and a collection quick. `PARKET_SLOWEST=15` lists the tests that took longest. `TEST=test/open_test.rb` runs one file and `TESTOPTS="--name=/pattern/"` passes options to minitest; both work for the `test:` tasks below as well. |
|
|
2700
|
+
| `rake test` | The suite, with the default settings, in two processes: `test/gc_test.rb` and `test/write_gc_test.rb`, whose tests run under `GC.stress`, in one of their own (`rake test:stressed`; `rake test:rest` is the other), where the heap is small and a collection quick. `PARKET_TEST_AT_ONCE=1` runs the two at the same time, in two thirds of the time on three processors or more, as CI does on Linux. `PARKET_SLOWEST=15` lists the tests that took longest. `TEST=test/open_test.rb` runs one file and `TESTOPTS="--name=/pattern/"` passes options to minitest; both work for the `test:` tasks below as well. |
|
|
2701
2701
|
| `rake test:inline` | The suite with `PARKET_THREADS=0`: every scan decodes, and every file is encoded, on the calling thread. |
|
|
2702
2702
|
| `rake test:threaded` | The suite with every scan forced onto decode threads, however small the file, and with a read-ahead budget of one byte so that every thread also waits for room; and with every file written on encoder threads, with one byte of room for rows that are not encoded yet. |
|
|
2703
2703
|
| `rake test:gc` | The suite with `PARKET_GC=stress`: the first scans and writes of every test run under `GC.stress`, up to an allowance per test that `rakelib/test.rake` describes. Takes about five times as long as `rake test`. |
|
data/ext/parket/Cargo.toml
CHANGED
data/ext/parket/src/cursor.rs
CHANGED
|
@@ -545,7 +545,21 @@ impl Cursor {
|
|
|
545
545
|
drain.stop.store(false, Ordering::Release);
|
|
546
546
|
match held.take() {
|
|
547
547
|
Some(until) => drain.run(Some(until)),
|
|
548
|
-
None =>
|
|
548
|
+
None => {
|
|
549
|
+
// Ruby makes no wait while it has something noted
|
|
550
|
+
// down for the thread: a signal that arrived since
|
|
551
|
+
// the look above, or its timer's note that another
|
|
552
|
+
// thread wants the GVL. Then nothing ran, and there
|
|
553
|
+
// is no end to take: taken all the same, the empty
|
|
554
|
+
// place read as a read that was over, and one read
|
|
555
|
+
// in ten thousand under a storm of signals raised
|
|
556
|
+
// that it had been re-entered. Asked again instead,
|
|
557
|
+
// after the look at the top.
|
|
558
|
+
if !gvl::without_gvl_or_interrupts(ruby, drain) {
|
|
559
|
+
continue;
|
|
560
|
+
}
|
|
561
|
+
ruby.thread_check_ints()?;
|
|
562
|
+
}
|
|
549
563
|
}
|
|
550
564
|
// The two calls that check for interrupts may run Ruby code:
|
|
551
565
|
// a signal handler, say. If that code captured a continuation,
|
data/lib/parket/version.rb
CHANGED