From: Luciano Rocha Date: Sun, 20 Apr 2008 11:18:47 GMT Subject: Re: [PATCH 01/02/RFC] implement a stat cache Message-ID: <20080420111847.GC13411@bit.office.eurotux.com> In-Reply-To: <20080420111346.GA13411@bit.office.eurotux.com> On Sun, Apr 20, 2008 at 12:13:46PM +0100, Luciano Rocha wrote: > An implementation of stat(2) and lstat(2) caching. Both the return code > and returned information are cached. > > Signed-off-by: Luciano Rocha > --- > On Sat, Apr 19, 2008 at 03:39:37PM -0700, Linus Torvalds wrote: > > Yeah. I didn't look any further, but we do a total of *nine* 'lstat()' > > calls for each file we know about that is dirty, and *seven* when they are > > clean. Plus maybe a few more. > > That's a lot. Why not use a stat cache? > > With these changes, my git status . in WebKit changes from 28.215s to > 15.414s. git status . in git changes from 0.477s to 0.412s. All tests under OS X. -- Luciano Rocha Eurotux Informática, S.A.