Skip to content

Group lint preview edits by source - #2295

Draft
oxura wants to merge 1 commit into
bendlang:mainfrom
oxura:fix/lint-preview-file-groups-20261124
Draft

oxura wants to merge 1 commit into
bendlang:mainfrom
oxura:fix/lint-preview-file-groups-20261124

Conversation

@oxura

@oxura oxura commented Nov 24, 2026

Copy link
Copy Markdown
Contributor

Fixes #2292. Rendering a fix preview used to filter every edit once for every file. This groups edits in one pass, in the order the files first appear.

A preview with 4,096 files and 16,384 edits dropped from 168 ms to 9 ms median over three runs. The full preview had the same bytes and hash. Two focused tests and the Linux repo gate passed (56/56). Mini gates not run.

- Keep file order while avoiding a complete edit scan per preview hunk.

Fixes bendlang#2292
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.

A multi-file bend-lint fix preview rescans every edit for every file

1 participant