Re: Balanced packing strategy

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Petr Baudis
Date: Sunday, November 13, 2005 - 4:00 am

Dear diary, on Sun, Nov 13, 2005 at 03:34:02AM CET, I got a letter
where Junio C Hamano <junkio@cox.net> said that...

I think we need either the balanced packing or this.


Sort the objects topologically, then get everything from the old heads
on. Obviously, this will not work so well when we get multiple heads in
single pack, but either don't do that (would it be actually so bad if we
would create one pack per head?), or:

  (i) objects are topologically sorted
  (ii) objects introduced by a commit/tree are right after the commit or
       tree in the pack file
  (iii) index file contains parents list for each commit

This way, you can possibly run through the gaps, or if the gap is big
enough, restart the request. You still will miss objects introduced by
commits in different branches, but in case of trees you can slurp the
trees at once again, and pick the individual objects otherwise; while
doing this second pass, you can apply the gaps strategy again.

-- 
				Petr "Pasky" Baudis
Stuff: http://pasky.or.cz/
VI has two modes: the one in which it beeps and the one in which
it doesn't.
-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Remove unneeded packs, Marcel Holtmann, (Sat Nov 12, 6:04 am)
Re: Remove unneeded packs, Andreas Ericsson, (Sat Nov 12, 6:13 am)
Re: Remove unneeded packs, Marcel Holtmann, (Sat Nov 12, 6:30 am)
Re: Remove unneeded packs, Craig Schlenter, (Sat Nov 12, 6:40 am)
Balanced packing strategy, Petr Baudis, (Sat Nov 12, 6:59 am)
Re: Balanced packing strategy, Craig Schlenter, (Sat Nov 12, 8:14 am)
Re: Remove unneeded packs, lukass, (Sat Nov 12, 3:02 pm)
Re: Remove unneeded packs, Marcel Holtmann, (Sat Nov 12, 3:13 pm)
Re: Balanced packing strategy, Junio C Hamano, (Sat Nov 12, 7:34 pm)
Re: Remove unneeded packs, Junio C Hamano, (Sat Nov 12, 7:38 pm)
Re: Remove unneeded packs, lukass, (Sun Nov 13, 3:58 am)
Re: Balanced packing strategy, Petr Baudis, (Sun Nov 13, 4:00 am)
Re: Remove unneeded packs, Sergey Vlasov, (Sun Nov 13, 5:00 am)
Re: Remove unneeded packs, lukass, (Sun Nov 13, 5:07 am)
Re: Remove unneeded packs, Sergey Vlasov, (Sun Nov 13, 5:20 am)
Re: Remove unneeded packs, lukass, (Sun Nov 13, 5:31 am)
Re: Balanced packing strategy, Josef Weidendorfer, (Sun Nov 13, 1:06 pm)
Re: Balanced packing strategy, Junio C Hamano, (Sun Nov 13, 4:13 pm)