Thread (22 messages) flat view 22 messages, 7 authors, 2016-06-15

Re: Calculating tree nodes

From: Jon Smirl <hidden>
Date: 2016-06-15 22:43:33

On 9/4/07, Johannes Schindelin [off-list ref] wrote:
Hi,

On Tue, 4 Sep 2007, Jon Smirl wrote:
quoted
In my scheme the path info is moved into the file object nodes and the
SHA list is in the commit node.
And how should this "SHA list" be any different from a single tree object,
except that you now merge it with the commit object?

Really, go back to the mail Martin mentioned.  Having all objects in one
list kills performance.
You are ignoring the fact the in this scheme temp indexes can be
created as needed. These temp indexes could look just like tree nodes.

I'm saying that it may be a mistake to be recording the indexes (aka
file names) as part of the commit when they really aren't. The
essential part of the commit is the SHA1 list. The path names belong
to the file objects and should be stored there.

quoted
Diffing two trees in the scheme is quite fast. Just get their commit
objects into RAM and compare the lists of SHAs.
No, it is not fast.  Just loading the complete list into RAM is likely
much, much slower than a simple diff _right_ _now_.

Hth,
Dscho

-- 
Jon Smirl
jonsmirl@gmail.com
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help