Limit refspecs to "recent" pull requests #627
DamienCassou
started this conversation in
Ideas
Replies: 1 comment 2 replies
-
What exactly gets slower?
|
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm working on a project with more than ten thousand PRs: 25 are currently open and they are within the most recent 500 ones. Listing branches in magit is quite slow because of all the
refs/pullreqs
refspecs.To make this faster, I started filtering the refspecs that are fetched:
This filters out all PRs that don't start with a "1". This works because all recent PRs (those greater than
#12131
) start with a "1".Then I cleaned all PR refspecs with:
Then I launched
forge-pull
again to fetch again all PR refspecs starting with a "1".This makes magit much faster but is very hackish. Do you have any idea on how to do better?
Beta Was this translation helpful? Give feedback.
All reactions