Thread (29 messages) flat view 29 messages, 7 authors, 2016-08-11

Re: [PATCH 01/02/RFC] implement a stat cache

From: Luciano Rocha <hidden>
Date: 2016-06-15 22:44:30

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 <redacted>
---
On Sat, Apr 19, 2008 at 03:39:37PM -0700, Linus Torvalds wrote:
quoted
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 [off-list ref]
Eurotux Informática, S.A. <http://www.eurotux.com/>

Attachments

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help