git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] p5310: Fix broken && chain in performance test

From
Stefan Beller <sbeller@google.com>
Date
Jun 26, 2015, 22:34 UTC
Message-ID
<CAGZ79kYCcexkdcF4D4GhUydh=0u0UOZGb0QGbtg6gbKWeO2M_Q@mail.gmail.com>
In-Reply-To
<xmqq616artpz.fsf@gitster.dls.corp.google.com>
On Fri, Jun 26, 2015 at 3:27 PM, Junio C Hamano <gitster@pobox.com> wrote:
Show 6 quoted lines
> Stefan Beller <sbeller@google.com> writes:
>
>> Signed-off-by: Stefan Beller <sbeller@google.com>
>
> Thanks.  How did you find this (does the auto &&-chain test apply to
> t/perf stuff as well)?

Apparently the &&-chain tests for it as I got a warning for it while benchmarking some changes in ALLOC_GROW. (which originally should have fixed the coverity false positives, but I was side tracked wondering about performance)

Show 29 quoted lines
>
> Will queue.
>
>> ---
>>  t/perf/p5310-pack-bitmaps.sh | 6 +++---
>>  1 file changed, 3 insertions(+), 3 deletions(-)
>>
>> diff --git a/t/perf/p5310-pack-bitmaps.sh b/t/perf/p5310-pack-bitmaps.sh
>> index f8ed857..de2a224 100755
>> --- a/t/perf/p5310-pack-bitmaps.sh
>> +++ b/t/perf/p5310-pack-bitmaps.sh
>> @@ -39,14 +39,14 @@ test_expect_success 'create partial bitmap state' '
>>
>>       # now kill off all of the refs and pretend we had
>>       # just the one tip
>> -     rm -rf .git/logs .git/refs/* .git/packed-refs
>> -     git update-ref HEAD $cutoff
>> +     rm -rf .git/logs .git/refs/* .git/packed-refs &&
>> +     git update-ref HEAD $cutoff &&
>>
>>       # and then repack, which will leave us with a nice
>>       # big bitmap pack of the "old" history, and all of
>>       # the new history will be loose, as if it had been pushed
>>       # up incrementally and exploded via unpack-objects
>> -     git repack -Ad
>> +     git repack -Ad &&
>>
>>       # and now restore our original tip, as if the pushes
>>       # had happened
Previous: Junio C HamanoNext: Jeff King
Message 3 of 4 in “p5310: Fix broken && chain in performance test”
  1. p5310: Fix broken && chain in performance testStefan Beller, Jun 26, 2015
  2. Junio C HamanoJun 26, 2015
  3. Stefan BellerJun 26, 2015
  4. Jeff KingJun 27, 2015

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.