Re: cherry-pick is slow
- From
Jeff King <peff@peff.net>
- Date
- May 15, 2012, 13:24 UTC
- Message-ID
- <20120515132451.GA25378@sigill.intra.peff.net>
- In-Reply-To
- <CAPZ_ugbD=mOPBs6GyapWtv6NWuJ-=r2+bqBN9n+gdTPwGj3F0Q@mail.gmail.com>
[let's keep this on-list so others can benefit from the discussion]
On Tue, May 15, 2012 at 12:38:59PM +0400, Dmitry Risenberg wrote:
Show 7 quoted lines
> > It's probably detecting renames as part of the merge, which can be > > expensive if the thing you are cherry-picking is far away from HEAD. You > > can try setting the merge.renamelimit config variable to something small > > (like 1; setting it to 0 means "no limit"). > > I set it to 1, but it didn't help at all - cherry-pick time is still > about the same.
OK, then my guess was probably wrong. You'll have to try profiling (if you are on Linux, "perf record git cherry-pick ..."; perf report" is the simplest way). Or if the repository is publicly available, I can do a quick profile run.
-Peff