Skip to content

perf(qa-matrix): count contract statuses in one pass#97400

Closed
ly-wang19 wants to merge 1 commit into
openclaw:mainfrom
ly-wang19:codex/high-quality-algo-43
Closed

perf(qa-matrix): count contract statuses in one pass#97400
ly-wang19 wants to merge 1 commit into
openclaw:mainfrom
ly-wang19:codex/high-quality-algo-43

Conversation

@ly-wang19

Copy link
Copy Markdown
Contributor

What Problem This Solves

The current implementation uses multiple .filter(...).length passes (or similar repeated iterations) to compute summary counts. Each pass walks the full collection, so producing N counts costs N full traversals.

Why This Change Was Made

perf(qa-matrix): count contract statuses in one pass collects all the relevant counts in a single pass over the data. The aggregated shape stays identical, so callers and tests are unchanged; only the internal iteration count drops from O(N×M) to O(N).

User Impact

No user-visible output change. Status/report generation avoids redundant aggregation work, which matters where the underlying collections are large (long migration plans, large QA suite reports, sizeable memory-wiki imports, etc.).

Evidence

  • Local: node scripts/test-projects.mjs on the touched test file(s)
  • Touched files: extensions/qa-matrix/src/runners/contract/runtime.ts
  • Branch: codex/high-quality-algo-43

@openclaw-barnacle openclaw-barnacle Bot added size: XS r: too-many-prs Auto-close: author has more than twenty active PRs. labels Jun 28, 2026
@openclaw-barnacle

Copy link
Copy Markdown

Closing this PR because the author has more than 20 active PRs in this repo. Please reduce the active PR queue and reopen or resubmit once it is back under the limit. You can close your own PRs to get back under the limit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

r: too-many-prs Auto-close: author has more than twenty active PRs. size: XS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant