Repository navigation
Conversation
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Covers dot notation, bracket fields, indexes, wildcards and escaped bracket fields so changes to the path parser can be measured. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Moved to a separate PR (apache#11508) so the benchmark lands on main first. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Address review feedback: instead of pushing each char into the unescaped buffer, track where the current run of literal chars starts and copy it with `push_str` on each escape and at the closing bracket. Also collapse the bracket field ownership asserts into one and cover multiple escapes between multi-byte chars. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Member
Author
|
🤖 Benchmark starting (GKE) | trigger Target: variant_path Sharding factor: 1 (1 workers). Comparing f9b8981 (f9b8981) to 4431da4 diff Run configurationrun benchmark variant_path
baseline:
ref: 4431da4087eeac53f7d15e12def5d2ae8d0a3250
changed:
ref: f9b89811115243b10e84d757e8aba8bc4d95f967
shards: 1
Results will be posted when all workers finish. File an issue against this benchmark runner |
|
🤖 Benchmark completed (GKE) | trigger Target: variant_path Comparing f9b8981 (f9b8981) to 4431da4 diff Run configurationrun benchmark variant_path
baseline:
ref: 4431da4087eeac53f7d15e12def5d2ae8d0a3250
changed:
ref: f9b89811115243b10e84d757e8aba8bc4d95f967
shards: 1
DetailsPer-runner informationvariant_path — shard 1/1Node: gk3-benchmark-cluster-nap-s8dlj0s2-9e66c073-76t2 Instance: c4a-highmem-16 (12 vCPU / 65 GiB) uname: BENCH_COMMAND: cargo bench --features=arrow,async,test_common,experimental,object_store --bench variant_pathCPU Details (lscpu)Resource Usagebase (merge-base)
branch
File an issue against this benchmark runner |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Which issue does this PR close?
Relates to #11232. This experimental draft is stacked on its head,
4431da4087eeac53f7d15e12def5d2ae8d0a3250, and includes that PR's changes. Incremental comparison.Rationale for this change
Compare an alternative bracket-path escape loop against #11232 on the benchmark runner. Local x86-64 measurements were sensitive to instruction alignment, so this draft does not claim a portable performance improvement.
What changes are included in this PR?
Copy each nonempty literal span, append the escaped character immediately, and consume adjacent escapes together. Resume span copying at
CharIndices::offset(). Fields without escapes retain #11232's borrowing behavior.The bot comparison will use
4431da4087eeac53f7d15e12def5d2ae8d0a3250as the baseline and this draft's commit as the changed version. The existing six-casevariant_pathbenchmark is identical on both sides; it does not cover the longer strings used in the local investigation.Are these changes tested?
Existing path parsing and ownership tests pass. Added cases cover adjacent escapes containing multibyte characters and a trailing backslash inside an escape run. All
parquet-varianttests and doctests, crate Clippy, formatting, spelling, and the six benchmark smoke cases pass.A separate differential check matched parsed values and error messages against the PR baseline for 3,333,567 inputs. Full-workspace tests and Clippy could not run offline because
crc32fast 1.5.3was not cached; fork CI remains to be checked.Are there any significant user-facing changes?
No intended semantic or public API changes. Performance remains under evaluation.
AI usage
Codex reconstructed and applied the earlier parser prototype, added the focused test cases, ran validation, and prepared this description.