Re: Handling large files with GIT
- From
Sam Vilain <sam@vilain.net>
- Date
- Feb 14, 2006, 21:21 UTC
- Message-ID
- <43F249F7.5060008@vilain.net>
- In-Reply-To
- <Pine.LNX.4.64.0602141108050.3691@g5.osdl.org>
Linus Torvalds wrote:
Show 11 quoted lines
> That said, I think git could do much better if the layout was optimized > for git. For example, in the maildir thing, there's two issues: the flat > directory structure is sub-optimal, but the other thing seems to be that > maildir apparently saves metadata in the filename. > > Saving meta-data in the filename should actually work wonderfully well > with git, but both merging and git-diff-tree consider the filename to be > the "index", so they optimize for that. You could do indexing the other > way around, and consider the contents to be the index (and the filename is > the "status"), but that's obviously not sane for a sw project, even if it > might be exactly what you want to do for mail handling.
This seems to me to be another use case where git could gain orders of magnitude speed improvement by either explicit ("forensic") history objects, or a history analysis cache.
Sam.