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

Re: 'git describe' is very slow on development trees with lots of commits

From
PMPavel Machek <pavel@ucw.cz>
Date
Oct 31, 2012, 17:52 UTC
Message-ID
<20121031175226.GB20660@elf.ucw.cz>
In-Reply-To
<20121027133352.GB30001@gmail.com>
Hi!
Show 10 quoted lines
> (Cc:-ed the Git development list.)
> 
> * David Ahern <dsahern@gmail.com> wrote:
> 
> > PERF-VERSION-GEN and specifically the git commands are the 
> > cause of more delay than the config checks, especially when 
> > doing the build in a VM with the kernel source on an NFS 
> > mount.
> 
> Yes, I have noticed that too.
....
> The cost on this pretty fast machine is about 1 msecs per commit 
> - which adds up to about 2.5 seconds during much of the 
> development cycle.

Well... I noticed my builds when little changed are very slow... and it was due to the computation of version string. Ouch.

pavel@amd:~/mainline-altera/linux$ time git describe fixes-for-linus-506-g71ca8691 0.68user 0.22system 27.82 (0m27.820s) elapsed 3.26%CPU pavel@amd:~/mainline-altera/linux$

(Cached it is more reasonable 3 seconds, but it keeps going out of cache all the time. Uncached clean build is 3 minutes, cached is 9 seconds + time to do git describe).

Thikpad X60.
									Pavel
-- 
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
Previous: Ingo Molnar
Message 2 of 2 in “'git describe' is very slow on development trees with lots of commits”
  1. Ingo MolnarOct 27, 2012
  2. Pavel MachekOct 31, 2012

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.