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

Re: [PATCH] sha1_name: avoid quadratic list insertion in handle_one_ref

From
Jeff King <peff@peff.net>
Date
Aug 22, 2014, 04:04 UTC
Message-ID
<20140822040446.GB27992@peff.net>
In-Reply-To
<53F63AC5.80901@web.de>
On Thu, Aug 21, 2014 at 08:30:29PM +0200, René Scharfe wrote:
Show 5 quoted lines
> Similar to 16445242 (fetch-pack: avoid quadratic list insertion in
> mark_complete), sort only after all refs are collected instead of while
> inserting.  The result is the same, but it's more efficient that way.
> The difference will only be measurable in repositories with a large
> number of refs.
Looks good, thanks.

I was hoping one of these would be fixing the quadratic http-push behavior I mentioned yesterday, but alas. We seem to have a lot of quadratic spots to fix. :)

-Peff
Previous: René Scharfe
Message 2 of 2 in “sha1_name: avoid quadratic list insertion in handle_one_ref”
  1. sha1_name: avoid quadratic list insertion in handle_one_refRené Scharfe, Aug 21, 2014
  2. Jeff KingAug 22, 2014

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.