git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
* pack-object's try_delta fast path for v2 trees?
@ 2013-10-12  3:42 Duy Nguyen
  2013-10-12 14:52 ` Nicolas Pitre
  2013-10-15  0:19 ` Jeff King
  0 siblings, 2 replies; 8+ messages in thread
From: Duy Nguyen @ 2013-10-12  3:42 UTC (permalink / raw)
  To: Nicolas Pitre; +Cc: Git Mailing List

Hi,

Just wondering if this has been considered and dropped before.
Currently we use try_delta() for every object including trees. But
trees are special. All tree entries must be unique and sorted. That
helps simplify diff algorithm, as demonstrated by diff_tree() and
pv4_encode_tree(). A quick and dirty test with test-delta shows that
tree_diff only needs half the time of diff_delta(). As trees account
for like half the objects in a repo, speeding up delta search might
help performance, I think.
-- 
Duy

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

end of thread, other threads:[~2013-10-15  2:13 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-10-12  3:42 pack-object's try_delta fast path for v2 trees? Duy Nguyen
2013-10-12 14:52 ` Nicolas Pitre
2013-10-15  0:19 ` Jeff King
2013-10-15  0:49   ` Duy Nguyen
2013-10-15  0:54     ` Jeff King
2013-10-15  1:45   ` Nicolas Pitre
2013-10-15  1:51     ` Jeff King
2013-10-15  2:13       ` Nicolas Pitre

Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

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 read-only IMAP folder(s) and NNTP newsgroup(s).