Skip to content

git: More performance improvements when toggling between diff views (#49400) (cherry-pick to preview)#49412

Merged
zed-zippy[bot] merged 1 commit intov0.224.xfrom
cherry-pick-v0.224.x-e8816f27
Feb 17, 2026
Merged

git: More performance improvements when toggling between diff views (#49400) (cherry-pick to preview)#49412
zed-zippy[bot] merged 1 commit intov0.224.xfrom
cherry-pick-v0.224.x-e8816f27

Conversation

@zed-zippy
Copy link
Contributor

@zed-zippy zed-zippy bot commented Feb 17, 2026

Cherry-pick of #49400 to preview


  • Defer syncing block maps from set_companion, eliminating some
    redundant recomputations
  • Emit one large multibuffer edit from set_show_deleted_hunks instead
    of many small edits, to avoid bad case for block map

This cuts hangs roughly in half when toggling between views in a large
diff (1000 commits from the chromium repository).

Release Notes:

  • Improved performance with large diffs when toggling between diff
    views.

Co-authored-by: Jakub Konka kubkon@jakubkonka.com
Co-authored-by: Lukas Wirth lukas@zed.dev

…49400)

- Defer syncing block maps from `set_companion`, eliminating some
redundant recomputations
- Emit one large multibuffer edit from `set_show_deleted_hunks` instead
of many small edits, to avoid bad case for block map

This cuts hangs roughly in half when toggling between views in a large
diff (1000 commits from the chromium repository).

<!-- Before you mark this PR as ready for review, make sure that you
have:
- [ ] Added a solid test coverage and/or screenshots from doing manual
testing
- [ ] Done a self-review taking into account security and performance
aspects
- [ ] Aligned any UI changes with the [UI
checklist](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist)
-->

Release Notes:

- Improved performance with large diffs when toggling between diff
views.

---------

Co-authored-by: Jakub Konka <kubkon@jakubkonka.com>
Co-authored-by: Lukas Wirth <lukas@zed.dev>
@cla-bot cla-bot bot added the cla-signed The user has signed the Contributor License Agreement label Feb 17, 2026
@zed-community-bot zed-community-bot bot added the bot Pull requests authored by a bot label Feb 17, 2026
@zed-zippy zed-zippy bot merged commit 94818b9 into v0.224.x Feb 17, 2026
35 checks passed
@zed-zippy zed-zippy bot deleted the cherry-pick-v0.224.x-e8816f27 branch February 17, 2026 22:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bot Pull requests authored by a bot cla-signed The user has signed the Contributor License Agreement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant