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

name-rev --stdin is slow

From
LWLea Wiemann <lewiemann@gmail.com>
Date
Jun 19, 2008, 21:10 UTC
Message-ID
<485ACB34.2020901@gmail.com>

name-rev --stdin has some really high start-up time. The example below is on my git.git branch. Is this unavoidable to make name-rev fast for naming high numbers of revisions -- i.e. is it about amortization? Still, 0.7 seconds seems pretty excessive, and on linux-2.6 it even takes 6 seconds.

Anyone care to look into it?

$ time echo HEAD | git name-rev --stdin HEAD

real 0m0.748s user 0m0.588s sys 0m0.080s $ time git name-rev HEAD HEAD master

real 0m0.041s user 0m0.016s sys 0m0.028s

Next: Daniel Barkalow
Message 1 of 4 in “name-rev --stdin is slow”
  1. Lea WiemannJun 19, 2008
  2. Daniel BarkalowJun 19, 2008
  3. Lea WiemannJun 19, 2008
  4. Daniel BarkalowJun 19, 2008

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.