git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Does pack v4 do anything to commits?
@ 2012-02-18  4:44 Nguyen Thai Ngoc Duy
  2012-02-18 15:34 ` Nicolas Pitre
  0 siblings, 1 reply; 2+ messages in thread
From: Nguyen Thai Ngoc Duy @ 2012-02-18  4:44 UTC (permalink / raw)
  To: Nicolas Pitre; +Cc: Git Mailing List, Shawn O. Pearce

Hi Nico,

I had an experiment on speeding up "rev-list --all". If I cache sha-1
of tree and parent, and committer date of single-parent commits, in
binary form, rev-list can be sped up significantly. On linux-2.6.git,
it goes from 14s to 4s (2s to 0.8 for git.git). Profiling shows that
commit parsing (get_sha1_hex, parse_commit_date) dominates rev-list
time.

>From what I remember, pack v4 is mainly about changing tree
representation so that we can traverse object DAG as fast as possible.
Do you do anything to commit representation too? Maybe it's worth
storing the above info along with the compressed commit objects in
pack to shave some more seconds.

By the way, is latest packv4 code available somewhere to fetch?
-- 
Duy

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

end of thread, other threads:[~2012-02-18 15:34 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-02-18  4:44 Does pack v4 do anything to commits? Nguyen Thai Ngoc Duy
2012-02-18 15:34 ` Nicolas Pitre

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).