Re: Drastic jump in the time required for the test suite
- From
Jeff King <peff@peff.net>
- Date
- Oct 21, 2016, 08:24 UTC
- Message-ID
- <20161021082409.isgrvurv4ttra7ai@sigill.intra.peff.net>
- In-Reply-To
- <4d97fcc7-d15b-e7d8-c787-483c67d4a66b@kdbg.org>
On Fri, Oct 21, 2016 at 07:27:40AM +0200, Johannes Sixt wrote:
Show 8 quoted lines
> Am 20.10.2016 um 23:38 schrieb Jeff King:
> > test_cmp () {
> > # optimize for common "they are the same" case
> > # without any subshells or subprograms
>
> We do this already on Windows; it's the function mingw_test_cmp in our test
> suite:
> https://github.com/git/git/blob/master/t/test-lib-functions.sh#L884-L945Ah, thanks, I didn't even think to look for an existing solution like this. Looks like it was done for LF/CRLF reasons, though, not performance. I wonder if anybody has measured whether it improves things there or not.
-Peff