Skip to content

git: Implement branch diff line counts efficiently#52582

Merged
cole-miller merged 3 commits intomainfrom
project-diff-stats
Mar 30, 2026
Merged

git: Implement branch diff line counts efficiently#52582
cole-miller merged 3 commits intomainfrom
project-diff-stats

Conversation

@cole-miller
Copy link
Copy Markdown
Member

@cole-miller cole-miller commented Mar 27, 2026

Previously we were iterating over all hunks across all diffs on every frame. Now we can read off the required information as a SumTree summary in constant time.

Self-Review Checklist:

  • I've reviewed my own diff for quality, security, and reliability
  • Unsafe blocks (if any) have justifying comments
  • The content is consistent with the UI/UX checklist
  • Tests cover the new/changed behavior
  • Performance impact has been considered and is acceptable

Release Notes:

  • git: Fixed bad performance in large branch diffs.

@cla-bot cla-bot bot added the cla-signed The user has signed the Contributor License Agreement label Mar 27, 2026
@zed-codeowner-coordinator zed-codeowner-coordinator bot requested review from a team, as-cii and dinocosta and removed request for a team March 27, 2026 15:47
@zed-community-bot zed-community-bot bot added the staff Pull requests authored by a current member of Zed staff label Mar 27, 2026
@cole-miller cole-miller enabled auto-merge (squash) March 30, 2026 14:11
@cole-miller cole-miller merged commit 564d1fe into main Mar 30, 2026
30 checks passed
@cole-miller cole-miller deleted the project-diff-stats branch March 30, 2026 14:23
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.

3 participants