Skip to content

Speed up ungit#1508

Open
jung-kim wants to merge 42 commits intomasterfrom
jk/speed
Open

Speed up ungit#1508
jung-kim wants to merge 42 commits intomasterfrom
jk/speed

Conversation

@jung-kim
Copy link
Collaborator

@jung-kim jung-kim commented Mar 15, 2022

closes: #1091

  • Speed optimizations at the graph component #1508
    • speed up logic for NodeViewModel.isViewable() logic by using a map instead of doing array.include()
    • throttling ko observable change triggers.
    • removed unnecessary observables.
    • cleaned up how refs are calculated for NodeViewModel. NodeViewModel.ref() is no longer depends on branchesAndLocalTags() and remoteTags().
    • introduced graph.isBigRepo() to disable some of the features
      • branches.js's branch sorting
      • animations
      • hover graphice ovrlay
    • graph.dropareaGraphActions to be computed

Can someone test on their big repos?? It is an improvements but I'm not sure if it is enough of an improvement.


Node count matters less because we incrementally load nodes. But the over all git ref count from show-ref -d command was the biggest reason for the slow down, and indirectly create nodes.

This PR was tested with a repo with 14498 refs and before ungit was unusable but now it usable without any big issues now.

@wmertens
Copy link
Contributor

@jung-kim is there anything here that also works on the nodegit branch where node loading and graph layout is different?

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.

Too slow for big repository.

3 participants