Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RevGrid: Optimize onlyFirstParent handling #10082

Merged
merged 1 commit into from Jul 25, 2022

Conversation

gerhardol
Copy link
Member

Proposed changes

Further optimizations loading revisions, while adding revisions to the grid (while 'Loading' is shown).

Measuring with StopWatch in a Release builds, this measures <1 ms vs 30-60 ms.

Note: _gridView.Add(revision, flags); requires 250 ms for me which is actually less than I expected.
There may still be optimizations there, but I doubt it will be much. (Maybe the GUI updates can be improved more.)
The refs datastructure could maybe be improved too, but that is only about 10 ms, so not much gain.

Further loading improvements should be possible with caching of commands affected by worktree/index changes, which is tricky.

Test methodology

Manual

Merge strategy

I agree that the maintainer squash merge this PR (if the commit message is clear).


✒️ I contribute this code under The Developer Certificate of Origin.

@ghost ghost assigned gerhardol Jul 24, 2022
@RussKie RussKie merged commit 1c9cbb2 into gitextensions:master Jul 25, 2022
@ghost ghost added this to the vNext milestone Jul 25, 2022
@gerhardol gerhardol deleted the feature/optimize-rev-grid branch July 25, 2022 14:23
RussKie pushed a commit that referenced this pull request Jul 28, 2022
Co-authored-by: Gerhard Olsson <gerhardol@users.noreply.github.com>
(cherry picked from commit 1c9cbb2)
@RussKie RussKie modified the milestones: vNext, 4.0.0 Jul 28, 2022
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.

None yet

2 participants