Thread View: linux.kernel.git
3 messages
3 total messages
Started by Aniket Gupta
Fri, 20 Nov 2026 19:02
Re: [PATCH 2/6] status: say when the push branch was rebased cleanly
Author: Aniket Gupta
Date: Fri, 20 Nov 2026 19:02
Date: Fri, 20 Nov 2026 19:02
16 lines
11158 bytes
11158 bytes
Hi Harald,
Thanks for working on this.
> + if (num_same)
> + strvec_push(&argv, "--cherry-mark");
This makes git status slower when the branches have diverged as every
commit on both sides now needs a patch id. With status.compareBranches =
@{upstream} @{push} and 3000 commits on both side the status goes from
25ms to 150ms. With 10000, it goes from 60ms to 500ms. And with only
@{upstream} it stays the same.
Would it make sense to count without --cherry-mark first and only run
the patch id pass when the two counts are small?
Re: [PATCH 2/6] status: say when the push branch was rebased cleanly
Author: Harald Nordgren
Date: Fri, 20 Nov 2026 19:35
Date: Fri, 20 Nov 2026 19:35
17 lines
12070 bytes
12070 bytes
> This makes git status slower when the branches have diverged as every
> commit on both sides now needs a patch id. With status.compareBranches =
> @{upstream} @{push} and 3000 commits on both side the status goes from
> 25ms to 150ms. With 10000, it goes from 60ms to 500ms. And with only
> @{upstream} it stays the same.
Hmm, that's bad.
> Would it make sense to count without --cherry-mark first and only run
> the patch id pass when the two counts are small?
Maybe, but maybe the user experience will be weird if people don't
understand why the check is suddenly gone?
Harald
Re: [PATCH 2/6] status: say when the push branch was rebased cleanly
Author: Aniket Gupta
Date: Sat, 21 Nov 2026 06:21
Date: Sat, 21 Nov 2026 06:21
7 lines
10626 bytes
10626 bytes
> Maybe, but maybe the user experience will be weird if people don't > understand why the check is suddenly gone? Good point. The extra cost only comes from commits outside the upstream so a normal rebased branch should be fine. It only gets slow with thousand, so it probably is acceptable as is.
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads