Skip to content

git: Optimize patch_for_range functions#48852

Merged
cole-miller merged 4 commits intomainfrom
patch-for-range
Feb 10, 2026
Merged

git: Optimize patch_for_range functions#48852
cole-miller merged 4 commits intomainfrom
patch-for-range

Conversation

@cole-miller
Copy link
Member

These are heavily used by the side-by-side diff. Previously, we were iterating over all hunks for each call. Now we skip hunks that can't affect the provided range.

Release Notes:

  • N/A

@cla-bot cla-bot bot added the cla-signed The user has signed the Contributor License Agreement label Feb 10, 2026
@zed-community-bot zed-community-bot bot added the staff Pull requests authored by a current member of Zed staff label Feb 10, 2026
@cole-miller cole-miller merged commit 4177be4 into main Feb 10, 2026
27 checks passed
@cole-miller cole-miller deleted the patch-for-range branch February 10, 2026 06:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla-signed The user has signed the Contributor License Agreement staff Pull requests authored by a current member of Zed staff

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant