Repository navigation
Conversation
…graph `Views.CommitGraph.Render` iterated `Links` and `Dots` from the first item on every frame, skipping everything above the viewport, which is O(commits) per frame when scrolled to the bottom of a long history. Both lists are ordered by Y (one dot per commit row, each link ends half a row below its commit), so binary search the first visible item instead. `Paths` keep the linear scan since a path that starts far above the viewport can still cross it. The grayed pens are now created once in `Models.CommitGraph.SetPens` (and the dot fill pen is cached until `DotBrush` changes) instead of being allocated on every frame. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01KCxH1zwDXLd9kfAAkcf6PZ
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Views.CommitGraph.RenderiteratedLinksandDotsfrom the first item on every frame, skipping everything abovethe viewport, which is O(commits) per frame when scrolled to the bottom of a long history. Both lists are ordered by Y
(one dot per commit row, each link ends half a row below its commit), so binary search the first visible item instead.
Pathskeep the linear scan since a path that starts far above the viewport can still cross it.The grayed pens are now created once in
Models.CommitGraph.SetPens(and the dot fill pen is cached untilDotBrushchanges) instead of being allocated on every frame.
🤖 Generated with Claude Code