Repository navigation
perf(hashmap): hoist canonical string key sizing - #31779
Conversation
Qodo reviews are paused for this user.Troubleshooting steps vary by plan Learn more → On a Teams plan? Using GitHub Enterprise Server, GitLab Self-Managed, or Bitbucket Data Center? |
|
mo-bot review · Commit: Review linked issue or PR description changed before publication; a fresh contextual review is queued. |
|
mo-bot review · Commit: Review completed. Read the assessment. |
XuPeng-SH
left a comment
There was a problem hiding this comment.
mo-bot review · mo-bot-local · review
Commit: ed1114adde65f4ec8440f111287d6f648e113e33
Assessment: request_changes
The updated context leaves the existing performance-validation concern open. No new semantic defect was found.
Model: gpt-6-astra / xhigh
Session: 01a1869d-820c-7212-9788-aecfb86a4141 · slot 0 · generation 2
- P2
pkg/common/hashmap/strhashmap.go:774: The current issue explicitly requires resolving Q11 and NULL-control slowdown signals before merging this shared-path optimization.
Impact: Performance acceptance remains incomplete. Run an independent longer balanced baseline/candidate comparison for Q11 and the flagged NULL controls under matching resource conditions, and fix any confirmed regression. Functional CI and improvements elsewhere cannot close this requirement.
Evidence: The updated issue 30841 body and exact-head comment 6501775817 retain Q11 +1.25% (95% interval +0.78% to +2.44%) and roughly +1% NULL-control signals. Independent confirmation attempts were interrupted and excluded. These remain unconfirmed signals, not demonstrated causal regressions.
Validation:
-
Reviewed the complete delta, current discussion, updated linked issue, and relevant encoding/allocation consumers.
-
Source/evidence audit passed: checks/1793294580183850668-4.json and source-evidence-audit.log confirm matching head/patch, clean source, and complete discussion coverage.
-
Frozen-head CI reports successful unit tests, static analysis, build, coverage, and multi-CN BVT.
Limitations:
-
No fresh Go tests or performance runs were executed.
-
Raw timing artifacts and the matched SQL workload were not supplied; performance assessment uses the frozen reports.
|
mo-bot review · Commit: Review completed. Read the assessment. |
XuPeng-SH
left a comment
There was a problem hiding this comment.
mo-bot review · mo-bot-local · review
Commit: 12989b6117358a6d0c9b3eadeb27ca17ee8eea01
Assessment: approve
Sizing preserves encoding and allocation contracts. The prior Q11/NULL performance-validation concern is resolved; focused correctness and race checks passed.
Model: gpt-6-astra / xhigh
Session: 01a1869d-999c-7481-b340-ae4a63e8cee4 · slot 1 · generation 2
Validation:
-
Both changed hashmap tests and their subtests passed.
-
Reconnect test passed under -race, followed by four repetitions in one process.
-
Independently audited all four supplied performance CSV blocks and verified captured production code matches HEAD.
-
All five discussion entries assessed. Commands, source fingerprints, exits and retained logs reconciled in validation-reconciliation.json. Source remains unchanged.
Limitations:
-
No full-suite or performance benchmark rerun; supplied performance evidence was audited.
-
Q3's unmatched-build slowdown remains recorded; the matched-metadata/seed result is inconclusive. Broader issue #30841 acceptance remains open.
🚫 Left the queue1 h 32 min in the queue, with no time running CI. So far
Reason Pull request #31779 has been dequeued Pull request from fork cannot be queued. This pull request comes from a fork, and Mergify needs the author's permission to update its branch.
Hint You should look at the reason for the failure and decide if the pull request needs to be fixed or if you want to requeue it. Merge conditions: 2 of 3 metThis pull request
The batch, tested in place
Tick the box to put this pull request back in the merge queue (same as
Times in UTC · dashboard · how the merge queue works |
What type of PR is this?
Which issue(s) this PR fixes:
Related to #30841; broader grouping-key/state acceptance remains open.
Full source/ELF identities, matched SQL, raw timings, profiles summary and limitations.
The performance captures pin production revision
d8fa09e406; current head12989b6117adds only the shared reconnect-test repair, with unchanged service source/native inputs.What this PR does / why we need it:
Choose CHAR and Unicode canonical sizing once per column during hash-key preflight. Preserve per-row NULL/GROUPING precedence, exact byte counts, overflow checks and allocation admission before the existing encoders publish keys. Accumulate non-null constant widths once alongside uniform fixed widths, and keep the existing numeric sizing shortcuts ahead of string specialization.
The encoder, PAD SPACE/Unicode equality, framed key representation and source ownership remain unchanged. No cache, iterator state, API, storage format or memory-limit setting is added. The existing nullable/grouping test now covers VARCHAR, CHAR and Unicode CHAR with a broadcast constant, checking group identities and the exact80-byte binary-collation buffer. The PAD SPACE test also verifies key framing and Unicode equality.
Validation
The shared reconnect/rollback SQL fixture waits for the parked RC snapshot to be applied before disconnecting, preserving all retry, COMMIT/DDL/DML rollback and fresh-transaction assertions. It passes on this branch in default/v1,
matrixone_test, set-coverage mode (4.37s).The full hashmap owning package and affected grouping consumers passed. The final repository pre-push gate passed after merging current authoritative main, with zero static-analysis findings. CI for the newly pushed head is pending.
Performance evidence and limits
Five qualified final-source A/A/B component triplets use identical fixtures, Go1.27.1 SIMD/v3 and production function alignment64. Ordinary CHAR preparation is5.85% faster; nullable/grouping cases are about20% faster, all-NULL10.16% faster and constant3.85% faster. Empty remains inconclusive. All cases retain0B/op and0alloc/op. Cold/first samples are excluded.
Independent32-warm-call Q11 confirmation did not reproduce its earlier slower signal:−1.07%, interval−2.52% to+0.13%. The Q18 correction preserves numeric shortcuts; its separate24-warm-call comparison estimates−0.88%, interval−1.50% to−0.25%.
The ordinary full Q1–Q22 screen retained three qualified pairs and remains observational: inspection found different make-derived release metadata in detached-main and feature-branch builds. Its Q3+3.10% follow-up is retained in the evidence. After matching release metadata and hash seed, a separate four-pair Q3 comparison estimates+0.38%, interval−0.69% to+2.04%, with no directional signal. These limited-sample diagnostics are not pooled. Q1 benefit, full matched-release/SF100/mixed-I/O acceptance and broader issue closure are not claimed. No gain elsewhere waives a confirmed regression.
Both engines use eight physical CPUs, an effective16GiB CN cache and a32GiB whole-application budget. Retained timing arms pass the original CPU/build/memory/I/O/spill/swap/OOM gates. Scripts execute and drain without input/schema/table/row/reference/result/checksum verification; profiling is separate from latency scoring.