Re: Show of hands, how many set USE_NSEC
- From
Linus Torvalds <torvalds@linux-foundation.org>
- Date
- Aug 8, 2008, 18:00 UTC
- Message-ID
- <alpine.LFD.1.10.0808081056090.3462@nehalem.linux-foundation.org>
- In-Reply-To
- <20080808175247.GH9152@spearce.org>
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