From: Johannes Schindelin Date: Wed, 23 Jan 2008 12:25:41 GMT Subject: Re: I'm a total push-over.. Message-ID: In-Reply-To: <7vprvtngxk.fsf@gitster.siamese.dyndns.org> Hi, On Tue, 22 Jan 2008, Junio C Hamano wrote: > Linus Torvalds writes: > > > Basically, I dislike having two copies of the same data. If something > > can be computed from something else, then only the original data > > should exist, and the other thing should be recomputed. > > Yes, I agree with that in principle. Storing computable values makes > sense only when it is expensive to recompute. We did not have > cache-tree for quite a long time until you noticed that it was rather > expensive and wasteful to recompute tree objects from unchanged parts of > the index every time. > > It's the same argument; when the hashing performance starts to become > noticeable, we can think about storing and reusing it, not before. I fully expect it to be noticable with that UTF-8 "normalisation". But then, the infrastructure is there, and whoever has an itch to scratch... Ciao, Dscho