Skip to content

perf(update): replace patch-ID pipeline with git cherry for cherry-pick detection#126

Merged
narnaud merged 1 commit intomainfrom
perf-update
Mar 23, 2026
Merged

perf(update): replace patch-ID pipeline with git cherry for cherry-pick detection#126
narnaud merged 1 commit intomainfrom
perf-update

Conversation

@narnaud
Copy link
Owner

@narnaud narnaud commented Mar 23, 2026

filter_upstream_commits previously ran git rev-list + git diff-tree -p --stdin
| git patch-id on all upstream commits (O(upstream commits)), which was ~4x
slower than plain rebase on large repos. Replace with a single git cherry call
that is O(feature commits) instead, and make it lazy so it is only invoked when
the ancestry check leaves candidates.

Co-Authored-By: Claude Sonnet 4.6 noreply@anthropic.com

…ck detection

filter_upstream_commits previously ran git rev-list + git diff-tree -p --stdin
| git patch-id on all upstream commits (O(upstream commits)), which was ~4x
slower than plain rebase on large repos. Replace with a single git cherry call
that is O(feature commits) instead, and make it lazy so it is only invoked when
the ancestry check leaves candidates.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@narnaud narnaud merged commit d9920a4 into main Mar 23, 2026
4 checks passed
@narnaud narnaud deleted the perf-update branch March 23, 2026 20:23
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.

1 participant