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

Re: [PATCH v2] refs: remove lookup cache for reference-transaction hook

From
Jeff King <peff@peff.net>
Date
Aug 25, 2020, 15:10 UTC
Message-ID
<20200825151053.GA1409139@coredump.intra.peff.net>
In-Reply-To
<c1cae6dd19ffe00e4456e4f96ad92277ceeced27.1598349284.git.ps@pks.im>
On Tue, Aug 25, 2020 at 12:35:24PM +0200, Patrick Steinhardt wrote:
Show 5 quoted lines
> The only change compared to v1 is that I've addressed the unportable
> `branch-{1..1000}` syntax in favor of `test_seq`. I had to setup refs as
> part of the setup and change the ordering for "update-ref --stdin" from
> create/update/delete to update/delete/create, but I don't think that's
> too bad. At least timings didn't seem to really change because of that.

Another option instead of changing the order in the other tests is to do another untimed setup step before the push test. I'm OK either way, though.

> +test_perf "nonatomic push" '
> +	git push ./target-repo.git $(test_seq 1000) &&
> +	git push --delete ./target-repo.git $(test_seq 1000)
>  '

This works as far as Git is concerned, but "seq 1000" output with NULs is 3893 bytes. I wonder if some platforms might run into command-line limits there. I guess we will see when Windows CI runs. :)

-Peff
Previous: Patrick SteinhardtNext: Junio C Hamano
Message 8 of 10 in “refs: remove lookup cache for reference-transaction hook”
  1. refs: remove lookup cache for reference-transaction hookPatrick Steinhardt, Aug 21, 2020
  2. Jeff KingAug 21, 2020
  3. Junio C HamanoAug 21, 2020
  4. Jeff KingAug 21, 2020
  5. Patrick SteinhardtAug 22, 2020
  6. Patrick SteinhardtAug 22, 2020
  7. refs: remove lookup cache for reference-transaction hookPatrick Steinhardt, Aug 25, 2020
  8. Jeff KingAug 25, 2020
  9. Junio C HamanoAug 25, 2020
  10. Jeff KingAug 25, 2020

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.