-
-
Notifications
You must be signed in to change notification settings - Fork 159
perf(codegen/transform): #6812 — multi-group clone (w9) + inliner PutValueSet arm (w6), both beat node #6868
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
+378
−202
Merged
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
f573f1c
perf(codegen): #6812 w9 — multi-group whole-loop write clone
c5cd16e
docs: #6812 w9 multigroup changelog fragment + matrix row
4044184
fix(transform): #6812 w6 — inliner descends into PutValueSet references
1a9c6fc
docs: #6812 w6 row + fragment addendum
68f38e7
docs: PR-keyed fragment name; summary count + w6 baseline aligned (Co…
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| perf(codegen): #6812 — the whole-loop write clone matches multi-group bodies: up to two (alias, temps, writes) groups over distinct arrays, the shape the inliner produces for a write helper applied to parallel arrays. Each group is monomorphic on its own array (one preflight guard call each, AND-gated fast nest, interleaved stores, spill lanes included); dynamic bounds stay single-group. w9 (two shapes through one helper): 27 ms → ~5-8 ms vs node ~6 ms. Also fixes the inliner's missing PutValueSet arm — calls in a write's RHS were invisible to inlining, stranding loops like `o.c = pick(r) + i` on the generic path; the hoisted call result now lands as a temp the clone matcher admits. w6 (call in body): ~100 ms → 5-7 ms, beating node (~7 ms). | ||
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win
🧩 Analysis chain
🏁 Script executed:
Repository: PerryTS/perry
Length of output: 36419
Align benchmark verdicts with the reported ranges. The reported w6 Node baseline of ~7 ms overlaps Perry’s 5–7 ms range, while w9 is only documented as “ties/beats” with a pending idle run. Use conservative wording for w6 until a strict median is established, and update the aggregate label to include non-strict wins.
changelog.d/6868-w9-multigroup.md#L1-L1: replace w6 “beating node” with conservative wording or provide the exact supporting median.docs/object-write-matrix.md#L43-L46: change the w6 verdict from unconditional “BEATS node” to “TIES/BEATS” unless exact measurements justify the stronger claim.docs/object-write-matrix.md#L58-L63: rename the aggregate to count wins or ties, e.g. “At node performance or better,” since w9 is still tied/beating with exact ratio pending.📍 Affects 2 files
changelog.d/6868-w9-multigroup.md#L1-L1(this comment)docs/object-write-matrix.md#L43-L46docs/object-write-matrix.md#L58-L63🤖 Prompt for AI Agents