Re: git diff looping?
- From
Jeff King <peff@peff.net>
- Date
- Jun 16, 2009, 12:07 UTC
- Message-ID
- <20090616120737.GA5227@coredump.intra.peff.net>
- In-Reply-To
- <20090616114726.GA4343@coredump.intra.peff.net>
On Tue, Jun 16, 2009 at 07:47:26AM -0400, Jeff King wrote:
Show 14 quoted lines
> $ git clone git://repo.or.cz/egit.git > $ git diff v0.4.0 -- \ > org.spearce.egit.core.test/src/org/spearce/egit/core/op/T0001_ConnectProviderOperationTest.java > > which isn't even all that big a file, but it is either causing some > horrible algorithmic behavior in the regex library, or is outright > sending it into an infinite loop. > > I tried building against the code in compat/regex; it completes in a > reasonable amount of time, though it is still noticeably slow. With > system regex, the diff given above doesn't complete in less than 90 > seconds (at which I get bored and kill it). With compat/regex, it > completes in about 2.2 seconds. Disabling the xfuncname, it completes in > 0.14 seconds.
And here is a patch series to use compat/regex on Solaris. I think the first one should be non-controversial, as it just makes the knob more convenient to turn. The second one is up for debate.
1/2: Makefile: refactor regex compat support 2/2: Makefile: use compat regex on Solaris
-Peff