Git development
 help / color / mirror / Atom feed
* name-rev --stdin is slow
@ 2008-06-19 21:10 Lea Wiemann
  2008-06-19 22:03 ` Daniel Barkalow
  0 siblings, 1 reply; 4+ messages in thread
From: Lea Wiemann @ 2008-06-19 21:10 UTC (permalink / raw)
  To: Git Mailing List

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2008-06-19 23:01 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-06-19 21:10 name-rev --stdin is slow Lea Wiemann
2008-06-19 22:03 ` Daniel Barkalow
2008-06-19 22:09   ` Lea Wiemann
2008-06-19 23:00     ` Daniel Barkalow

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox