Repository navigation
perf(javascript): index returned object targets - #1537
Conversation
|
Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits. |
|
Independent maintenance review is starting on this existing performance PR. I have a separate review branch integrating current merged main I will check static-property/dynamic-property/spread ordering and receiver ownership, then exercise small source-owned targets through the actual compiled public CLI and production SDK stdio MCP, with unchanged input and complete Evidence checks. Contributor unit/profile results are attributed to the PR, rather than treated as an independent runtime proof. No large Notion/Obsidian matrix is planned for this review. |
|
The index-only scope addresses the concern on #1520: there is no receiver-effect lifetime cache in this revision, and the reverse trailing-unknown chain appears to preserve the previous candidate order. The branch is based before merged #1517/#1526/#1539. Please integrate current The exact-head CI workflows were approved and are running. For the index boundary, complete-IR comparison should include duplicate static property names, trailing computed properties and trailing spreads, since those are the representations whose lookup/order changed. |
|
Merged by SHA-guarded rebase after 20/20 checks succeeded on I rebuilt merged The instrumented small-fixture property-scan control decreased from 144 visits to 82; this does not establish general throughput or billing savings. Result bytes remain unchanged. The exact duplicate unit group was removed while preserving its tested copy; 172 distinct relevant tests and the serial local gates pass. The finished worktree and build are removed; source branches and proof receipts are retained. |
When several calls select methods from the same object literal, returned-reference analysis repeatedly scans all of its properties. This change builds an analysis-local syntax index once, preserving duplicate keys, trailing spread/computed candidates, callable captures, dynamic-key fallback, and receiver-effect ownership.
Fixes #1495.
The maintainer follow-up removes an exactly duplicated two-test describe block while retaining its original copy, including the 2,000-method regression.
Validation:
The default Evidence payload is unchanged: this fixture produces 785,206 CLI bytes and 1,644,176 MCP reply bytes. This CPU optimization makes no claim of reduced output size or token billing. Verification covers JavaScript public CLI/MCP workflows; it does not establish native-provider or large-application performance.