Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S261834AbVDHRpa (ORCPT ); Fri, 8 Apr 2005 13:45:30 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S262895AbVDHRpa (ORCPT ); Fri, 8 Apr 2005 13:45:30 -0400 Received: from fire.osdl.org ([65.172.181.4]:10922 "EHLO smtp.osdl.org") by vger.kernel.org with ESMTP id S261834AbVDHRou (ORCPT ); Fri, 8 Apr 2005 13:44:50 -0400 Date: Fri, 8 Apr 2005 10:46:40 -0700 (PDT) From: Linus Torvalds To: Chris Wedgwood cc: Matthias-Christian Ott , Andrea Arcangeli , Kernel Mailing List Subject: Re: Kernel SCM saga.. In-Reply-To: <20050408171518.GA4201@taniwha.stupidest.org> Message-ID: References: <20050408041341.GA8720@taniwha.stupidest.org> <20050408071428.GB3957@opteron.random> <4256AE0D.201@tiscali.de> <20050408171518.GA4201@taniwha.stupidest.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1383 Lines: 35 On Fri, 8 Apr 2005, Chris Wedgwood wrote: > On Fri, Apr 08, 2005 at 10:14:22AM -0700, Linus Torvalds wrote: > > > After applying a patch, I can do a complete "show-diff" on the kernel tree > > to see the effect of it in about 0.15 seconds. > > How does that work? Can you stat the entire tree in that time? I > measure it as being higher than that. I can indeed stat the entire tree in that time (assuming it's in memory, of course, but my kernel trees are _always_ in memory ;), but in order to do so, I have to be good at finding the names to stat. In particular, you have to be extremely careful. You need to make sure that you don't stat anything you don't need to. We're not talking just blindly recursing the tree here, and that's exactly the point. You have to know what you're doing, but the whole point of keeping track of directory contents is that dammit, that's your whole job. Anybody who can't list the files they work on _instantly_ is doing something damn wrong. "git" is really trivial, written in four days. Most of that was not actually spent coding, but thinking about the data structures. Linus - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/