On Fri, 8 Aug 2008, Shawn O. Pearce wrote:
That single file however does not need to be structured internallyy
the way it is.
Ok, at that point I certainly agree.
As long as we're talking about a single flat file, I don't think it would
be all that painful to have a totally new index format. The original
format was (obviously) designed to be just mmap'ed and turned into a C
array with no real parsing.
But once we started building a separate index data structure with internal
structure _anyway_ (for the extended in-memory flags and the filename
hashing), a lot of the reasons for the original format kind of went away.
Linus