Skip to content

perf(javascript): aggregate semantic family coverage once - #1410

Merged
N0zoM1z0 merged 1 commit into
mainfrom
perf/javascript-family-coverage
Oct 10, 2026
Merged

N0zoM1z0 merged 1 commit into
mainfrom
perf/javascript-family-coverage

Conversation

@N0zoM1z0

Copy link
Copy Markdown
Collaborator

Semantic graph completion copied and scanned all retained relations for each of the 12 families, then repeatedly filtered unknowns. Count relations and group unknown IDs once, and reuse the relation array passed to graph construction. Counts, unknown ordering, coverage, node budgets, graph identity, and complete Evidence remain unchanged.

Validation:

  • 99 focused tests across semantic projection/resources, immutable result steps, cancellation, actual SDK MCP cancellation, and compiled CLI JSON/JSONL output passed.
  • Full npm run typecheck -- --singleThreaded, lint/module boundaries, and changed-file formatting passed under the existing two-CPU/2 GiB process-family RSS guard. The single-threaded compiler peaked at 1.48 GB; ordinary parallel typechecking previously exceeded that guard.
  • Before/after compiled application analysis of the same source-owned 80-function fixture produced identical complete Evidence SHA-256, Evidence ID, graph ID, family coverage, and all 2,893 nodes / 2,246 relations / 885 unknowns.

An aggregation-only microbenchmark on that completed graph (50 alternating iterations) measured 1.79 ms versus 0.16 ms median. Whole analysis was 1.129 s versus 1.331 s in the single pair; this is not an end-to-end throughput, memory, or token-use improvement claim. No Notion/Obsidian or real native-provider run was repeated for this provider-independent change.

Refs #1065. This removes one repeated completion scan; the broader cancellation/catalog/result-repetition roadmap remains open.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits.
Repo admins can enable using credits for code reviews in their settings.

@N0zoM1z0
N0zoM1z0 merged commit 4d8ef3f into main Oct 10, 2026
19 checks passed
@N0zoM1z0
N0zoM1z0 deleted the perf/javascript-family-coverage branch October 10, 2026 03:30
darsrc pushed a commit to darsrc/rea that referenced this pull request Oct 10, 2026
Reduce repeated semantic relation and unknown family scans while preserving exact complete Evidence and coverage.
@morluto morluto added performance Performance regressions, scaling limits, and bounded-resource work area: native Native analysis and decompilation, including Ghidra, IDA, and Hopper analysis behavior labels Oct 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: native Native analysis and decompilation, including Ghidra, IDA, and Hopper analysis behavior performance Performance regressions, scaling limits, and bounded-resource work

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants