Re: RFC: Flat directory for notes, or fan-out? Both!
- From
Sam Vilain <sam@vilain.net>
- Date
- Feb 11, 2009, 03:30 UTC
- Message-ID
- <49924642.6000609@vilain.net>
- In-Reply-To
- <alpine.LFD.2.00.0902101825360.3590@localhost.localdomain>
Linus Torvalds wrote:
Show 6 quoted lines
> That sounds unnecessarily complicated. It also really sucks for the case > you want to optimize: small differences between trees, where you don't > need to even linearize the common parts. > > Why not make it just a straight fixed 12-bit prefix, single-level trie. >
My solution suffers from that problem too, but I personally still don't think that the answer is to fix the trie boundary.
The only case where it hurts is when you want to merge. Nothing else should care. So, if a merge of these note trees sees two different trie sizes then it can convert the shorter one to the longer length first, and then try the merge again. So you get the pain, but only once. And when a project decides that its split is too small, it can split then and it should "silently" spread out to others.
Sam.