Repository navigation
Conversation
|
run benchmark variant_builder |
|
🤖 Benchmark starting (GKE) | trigger Target: variant_builder Sharding factor: 1 (1 workers). Comparing perf/variant-object-header (4560e7f) to 72887ed (merge-base) diff Run configurationrun benchmark variant_builder
shards: 1
Results will be posted when all workers finish. File an issue against this benchmark runner |
|
@cakeni could you please enable CI on your fork 🙏 |
|
🤖 Benchmark completed (GKE) | trigger Target: variant_builder Comparing perf/variant-object-header (4560e7f) to 72887ed (merge-base) diff Run configurationrun benchmark variant_builder
shards: 1
DetailsPer-runner informationvariant_builder — shard 1/1Node: gk3-benchmark-cluster-nap-f702hydc-2e2e641d-wb7q Instance: c4a-highmem-16 (12 vCPU / 65 GiB) uname: BENCH_COMMAND: cargo bench --features=arrow,async,test_common,experimental,object_store --bench variant_builderCPU Details (lscpu)Resource Usagebase (merge-base)
branch
File an issue against this benchmark runner |
|
@cakeni have been silent on gh for a month 😢 I hope he's doing fine |
|
AI enhanced* |
|
I’ll keep working on this. |

Which issue does this PR close?
Closes #7960.
Rationale for this change
Finishing each Variant object allocates a temporary header buffer and splices it into the value buffer. Writing the header directly into its final location removes that allocation and the splice iterator.
What changes are included in this PR?
Grow the existing value buffer, move this object's payload with
copy_within, and write its header into the resulting slice. Field ordering, encoded offsets, nested builder rollback, and the wire format are preserved. The implementation uses safe standard-library operations.Are these changes tested?
A regression test covers nested objects with earlier and later siblings, empty objects, the 255/256 field-count and payload-size boundaries, wider field IDs, and three-byte offsets. Existing builder and interoperability tests exercise the encoded format.
The existing
variant_builderbenchmarks were run in before/after/after/before order on Windows x64 with Rust 1.99.0, 30 samples, 1 s warm-up, and 3 s measurement. Mean times:The runs were made after local test and lint builds finished. These are local desktop measurements, not a general speedup claim.
Are there any significant user-facing changes?
No public API or encoded-format changes.