Re: RFC: Flat directory for notes, or fan-out? Both!

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Boyd Stephen Smith Jr.
Date: Tuesday, February 10, 2009 - 6:58 pm

On Tuesday 10 February 2009 07:16:00 you wrote:
to

Perhaps it's not a traditional trie structure but that was the closest anal=
ogy=20
I could come up with.  I was actually thinking of something between a trie =
and=20
a b-tree, I think.  (It has been a long time since data structures class...)

The issue, as I understand it, it that we don't have gargantuan tree object=
s. =20
Reading and writing are slow and they'd also take up way to much memory if =
you=20
are only trying to find a few commits.

So, we figure out a maximum tree size that is reasonable, figure out a fan-=
out=20
that prevents the tree from growing above that size, but *dynamically* appl=
y=20
that fan-out.  I.e. if the fanout is 2 characters, and we've added notes fo=
r=20
both ff82730c and ff23abc0, then our tree would have ff/ -> some_tree_sha, =
but=20
if we had only a note for the one one our tree would have ff82730c... ->=20
some_note_sha.  Unlike .git/objects, we should probably also do dynamic fan=
out=20
in subtrees.

Yes, this would require a custom merge strategy for notes to flatten -> mer=
ge=20
=2D> canonicalize.


Yeah, that.

While I'm throwing out crazy ideas, why not makes a notes tree look just li=
ke=20
=2Egit/objects, including info and pack directories?
=2D-=20
Boyd Stephen Smith Jr.                   ,=3D ,-_-. =3D.
bss@iguanasuicide.net                   ((_/)o o(\_))
ICQ: 514984 YM/AIM: DaTwinkDaddy         `-'(. .)`-'
http://iguanasuicide.net/                    \_/
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
RFC: Flat directory for notes, or fan-out? Both!, Johannes Schindelin, (Mon Feb 9, 2:12 pm)
Re: [PATCH] git-rebase-interactive: you can also add new c ..., Johannes Schindelin, (Mon Feb 9, 2:31 pm)
Re: [PATCH] git-rebase-interactive: you can also add new c ..., Johannes Schindelin, (Mon Feb 9, 3:26 pm)
Re: RFC: Flat directory for notes, or fan-out? Both!, Boyd Stephen Smith Jr., (Tue Feb 10, 12:58 am)
Re: RFC: Flat directory for notes, or fan-out? Both!, Johannes Schindelin, (Tue Feb 10, 5:59 am)
Re: RFC: Flat directory for notes, or fan-out? Both!, Johannes Schindelin, (Tue Feb 10, 6:32 am)
Re: RFC: Flat directory for notes, or fan-out? Both!, Shawn O. Pearce, (Tue Feb 10, 9:44 am)
Re: RFC: Flat directory for notes, or fan-out? Both!, Johannes Schindelin, (Tue Feb 10, 10:09 am)
Re: RFC: Flat directory for notes, or fan-out? Both!, Shawn O. Pearce, (Tue Feb 10, 10:17 am)
Re: RFC: Flat directory for notes, or fan-out? Both!, Sam Vilain, (Tue Feb 10, 6:14 pm)
Re: RFC: Flat directory for notes, or fan-out? Both!, Boyd Stephen Smith Jr., (Tue Feb 10, 6:58 pm)
Re: RFC: Flat directory for notes, or fan-out? Both!, Linus Torvalds, (Tue Feb 10, 7:35 pm)
Re: RFC: Flat directory for notes, or fan-out? Both!, Sam Vilain, (Tue Feb 10, 8:19 pm)
Re: RFC: Flat directory for notes, or fan-out? Both!, Sam Vilain, (Tue Feb 10, 8:30 pm)
Re: RFC: Flat directory for notes, or fan-out? Both!, Linus Torvalds, (Tue Feb 10, 8:54 pm)
Re: RFC: Flat directory for notes, or fan-out? Both!, Sam Vilain, (Tue Feb 10, 10:05 pm)
Re: RFC: Flat directory for notes, or fan-out? Both!, Johannes Schindelin, (Wed Feb 11, 5:35 am)