-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
git 2.36.0 very slow on normal commands, when sparse-checkout #3840
Comments
git config core.sparsecheckout true
git checkout
Edit: I've checked it. It's got nothing to do with the old sparse-checkout commands. |
You could bisect through the latest snapshots to pinpoint this further. |
@rpier1 ah, I see that you responded in the other ticket. Continuing the discussion in this ticket.
I fear that the next stop, then, is to bisect through the commits introduced between 158a30d and v2.36.0-rc0. This is a bit tricky because you will need to first generate the diff between v2.36.0-rc0 and v2.36.0-rc0.windows.1, and then re-apply this diff (or commit on a throw-away branch, then To get you started
|
…windows/git#3840) This means we're no longer stuck on Git version 2.35.3 and because of this change Git version 2.36.0.windows.1.8.gdc88e3cd72.20220428163258 is now compatible with this script.
Which variant of sparse checkout did you use? Legacy or cone? Cone should be able to use a more efficient index format, which may help here... Or -while development of the feature is in progress- may slow things down. |
In our company we have a huge repo using a sparse-checkout, and sparse-checkout seems to be the cause of major slowdowns in git behaviour (e.g.
git diff
), since having switched togit 2.36.0
. It's so bad that we're using the2.35.3
instead.I've tried to make this reproducible with public repos such as linux etc. but it's all quite a hassle and I'm not quite sure I can make it reproducible; and waiting for the huge linux clone is just a pain and poking around the
.git/info/sparse-checkout
on speculation also just sucks.Unfortunately, I don't know what exact form
.git/info/sparse-checkout
needs, so that things start getting crazy slow...Here's my attempt to get it reproducible. Try it on various large repo, perhaps one of them will have the slow behaviour...
The text was updated successfully, but these errors were encountered: