Skip to content

ref(grouping): Remove Python enhancement executor - #121174

Open
scttcper wants to merge 1 commit into
masterfrom
scttcper/delete-python-enhancer
Open

ref(grouping): Remove Python enhancement executor#121174
scttcper wants to merge 1 commit into
masterfrom
scttcper/delete-python-enhancer

Conversation

@scttcper

@scttcper scttcper commented Aug 4, 2026

Copy link
Copy Markdown
Member

Enhancement execution moved fully to Rust in #67778, but the Python rule objects still carried the old matcher and action executor. Remove that dead implementation and the tests dedicated to it, finishing the cleanup started in #67680.

EnhancementRule remains the Python representation used for parsing, splitting classifier and contribution rules, base64 serialization, and hint attribution. Its classification flags are now lazy, avoiding unused work when loading already-split base64 configs.

This improves grouping.enhancements.creation for projects with custom or derived rules. The default config has no local rules and remains within benchmark noise.

Warm config-load benchmark, median of 7 runs with 1,000 loads per run:

Local rules Before After Improvement
10 70 µs 65 µs 7%
100 587 µs 521 µs 11%

Enhancement execution has been Rust-only since the rollout cleanup, but parser objects still carried the old Python matcher and action machinery. Remove that dead path and its legacy tests while keeping config parsing, serialization, Rust inputs, and hint attribution unchanged.

Make split action flags lazy as well so cached configs do not recompute state they never read.

Co-Authored-By: Codex <noreply@openai.com>
@github-actions github-actions Bot added the Scope: Backend Automatically applied to PRs that change backend components label Aug 4, 2026
@scttcper scttcper changed the title perf(grouping): Remove Python enhancement executor ref(grouping): Remove Python enhancement executor Aug 4, 2026
@scttcper
scttcper marked this pull request as ready for review August 4, 2026 16:59
@scttcper
scttcper requested a review from a team as a code owner August 4, 2026 16:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Scope: Backend Automatically applied to PRs that change backend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant