Skip to content

relation_facts: cut the dsf unchanged-check's ticket pass (Part of #5142) - #6135

Merged
squid-protocol merged 1 commit into
mainfrom
churn/5142-20261023T0208Z
Oct 23, 2026
Merged

squid-protocol merged 1 commit into
mainfrom
churn/5142-20261023T0208Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Checklist: partial [c:7a2199c1] -- the engine-scan refactor (~91 s for dsf) and the first config's ticket pass are still head-side floor cost; the step is not yet near the ~45 s of the zopeneditor path.

What

The base side was already cached (#5190, #5434). This PR cuts the head side. Profiling dsf (1473 PL/I files, 438 ported programs) on the engine-scan path: refactor 91 s, then generate 22 / 22 / 20 s per config, of which ~38 s (cProfile) was port-ticket collation_facts -> relation_facts._data_items, parsed twice per program and again for every config in the same process.

  • _data_items is memoised on a blake2b digest of its texts (bounded, each caller gets a deep copy).
  • _entries uses a regex scan instead of a per-character Python loop (same results, fuzz-tested against the old loop).

Evidence

  • dsf scan-path generate x3 configs: 63 s -> ~35 s (13.7 / 10.5 / 10.3 s) on this box.
  • java_target_matrix.py --same-as <origin/main> on dsf, 3 configs, both paths: IDENTICAL: every generated file is identical to the base's (reports included).
  • pr_gates --fast 7/7, --ratchets 9/9 (golden masters are untouched: no parsing logic changed).

Class

A CI step whose unchanged path does corpus-proportional work. Covered: dsf (the only large corpus; the other burned estates are COBOL and small).

Sibling gaps: the 91 s engine-scan refactor (needs an engine scan cache keyed on the engine content; frontier, needs dsf); the Ground Truth gate item (separate checklist line).

Cross-repo: none.

🤖 Generated with Claude Code

…regex (Part of #5142)

The Java unchanged-check for dsf spent most of its generate time in port-ticket data-item parsing, repeated per config and twice per program. Output is byte-identical to main (java_target_matrix --same-as on dsf).

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@squid-protocol squid-protocol added the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Oct 23, 2026
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol
squid-protocol marked this pull request as ready for review October 23, 2026 02:25
@github-actions

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

@squid-protocol
squid-protocol enabled auto-merge (squash) October 23, 2026 02:48
@squid-protocol
squid-protocol merged commit b2d8584 into main Oct 23, 2026
85 checks passed
@squid-protocol
squid-protocol deleted the churn/5142-20261023T0208Z branch October 23, 2026 03:17
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

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

Labels

shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant