Skip to content

Leave bend-lint findings unchanged after empty rules - #2329

Draft
oxura wants to merge 1 commit into
bendlang:mainfrom
oxura:perf/lint-no-finding-copy-20261124
Draft

oxura wants to merge 1 commit into
bendlang:mainfrom
oxura:perf/lint-no-finding-copy-20261124

Conversation

@oxura

@oxura oxura commented Nov 24, 2026

Copy link
Copy Markdown
Contributor

If a rule reports nothing, there is no reason to copy all the findings that came before it. The next rule sees the same findings in the same order.

Fixes #2328.

On a stress pack with 15,000 findings followed by 4,096 quiet rules, the median went from 247.0 to 9.7 ms over five interleaved runs per tree. All 15,001 final diagnostics matched. Four focused tests and the Linux repo gate passed. The mini gates weren't run.

- Keep the existing list when the rule has nothing to add instead of copying it again.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bend-lint recopies all earlier findings for rules that emit none

1 participant