Repository navigation
perf: opt ada and yacc state_mutation into _line_gates (Part of #3171) - #5439
Conversation
line_gate_bench.py: ada corpus 1.1x / dense 1.4x faster; yacc corpus 2.5x / dense 0.8x (within the 35% bound). haskell, lua, m4, makefile, scheme, tcl and zig lost on corpus or dense and stay ungated. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
|
No description provided. |
|
No description provided. |
|
PR #5439 @ 6939cbb: 2 failed check(s) == full-suite (failure) -- real == full-suite part 2/3 (failure) -- main |
…t of #3171) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
|
No description provided. |
|
No description provided. |
Part of #3171 (first slice: the 9 languages eligible today). Opts
adaandyaccstate_mutationinto_line_gates; the other seven were benched and stay ungated.Bench (
line_gate_bench.py-style, best of 3-15, LANGUAGE_CRUCIBLE corpus)Exact parity (spans) held on every corpus for all nine. The win is small, as the issue predicted.
Gates
line_gate_bench.pyall pass;gate_parity_audit.pyzero violations.test_line_gates.py+test_rule_prefilter.py: 71 pass (pinned literal sets, parity tests, declared-count premise now >= 5).crucible_check.py(check mode, both legs): PASS, zero golden diff, no bless. A gate cannot change counts.audit_check.py: all clear.Remaining slices / Sibling gaps
pattern_is_line_localrefuses java at alternation branch 3 and typescript at branches 3 and 4 ("class matches newline"; likely a negated class lacking\n). Needs zero-movement proof and golden both legs. Then js, python, rust and ~30 more refused languages.B_Braces/func_startline gating belongs under perf: cut Optical Detector regex cost (COBOL Cartography is 76s CPU / 55% of extraction) #3182.Lessons for agents
line_gate_bench.pyonly covers rules already declared in_line_gates; to bench a candidate, timeline_gated_finditervsfinditerfrom a scratch script.ruff formatchanges intest_line_gates.pythataudit_check.pydoes not flag; don't reformat that file wholesale.🤖 Generated with Claude Code