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

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Johan Herland
Date: Monday, April 21, 2008 - 1:41 am

On Monday 21 April 2008, Dmitry Potapov wrote:
[snip snip]

Pardon me for butting in (and I'm honestly NOT trying to start a flamewar),
but I'm wondering if this could be solved by tracking directories in the
index. AFAICS it would:

- Help bring the number of lstat() calls down (since we can cache the
  lstat() results for directories like we currently do for regular files)

- More easily detect complicated cases like "add across symlinks" (see
  Junio's email at the spinics.net link above)

- (less important) When discussing empty directory support several months
  ago, ISTR one of the biggest hurdles being that directories were not
  tracked in the index


I don't know much about how the index is implemented (few do, I think), so
if there is a glaringly obvious reason why tracking directories in the
index is a bad idea, please enlighten me.


...Johan

-- 
Johan Herland, <johan@herland.net>
www.herland.net
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Git performance on OS X, Pieter de Bie, (Sat Apr 19, 12:28 pm)
Re: Git performance on OS X, Linus Torvalds, (Sat Apr 19, 2:22 pm)
Re: Git performance on OS X, Linus Torvalds, (Sat Apr 19, 2:29 pm)
Re: Git performance on OS X, Linus Torvalds, (Sat Apr 19, 2:54 pm)
Re: Git performance on OS X, Pieter de Bie, (Sat Apr 19, 3:00 pm)
Re: Git performance on OS X, Pieter de Bie, (Sat Apr 19, 3:08 pm)
Re: Git performance on OS X, Linus Torvalds, (Sat Apr 19, 3:39 pm)
Re: Git performance on OS X, Jakub Narebski, (Sat Apr 19, 3:44 pm)
Re: Git performance on OS X, Linus Torvalds, (Sat Apr 19, 3:50 pm)
Re: Git performance on OS X, Linus Torvalds, (Sat Apr 19, 3:54 pm)
Re: Git performance on OS X, Linus Torvalds, (Sat Apr 19, 4:04 pm)
Re: Git performance on OS X, Pieter de Bie, (Sat Apr 19, 4:10 pm)
Re: Git performance on OS X, Linus Torvalds, (Sat Apr 19, 4:26 pm)
Re: Git performance on OS X, Roman Shaposhnik, (Sat Apr 19, 4:35 pm)
Re: Git performance on OS X, Pieter de Bie, (Sat Apr 19, 4:56 pm)
Re: Git performance on OS X, Pieter de Bie, (Sat Apr 19, 4:57 pm)
Re: Git performance on OS X, Linus Torvalds, (Sat Apr 19, 5:06 pm)
Re: Git performance on OS X, Roman Shaposhnik, (Sat Apr 19, 5:21 pm)
Re: Git performance on OS X, Linus Torvalds, (Sat Apr 19, 5:31 pm)
Re: Git performance on OS X, Dmitry Potapov, (Sat Apr 19, 6:23 pm)
Re: Git performance on OS X, Junio C Hamano, (Sat Apr 19, 9:14 pm)
[PATCH 01/02/RFC] implement a stat cache, Luciano Rocha, (Sun Apr 20, 4:13 am)
[PATCH 02/02/RFC] make use of the stat cache, Luciano Rocha, (Sun Apr 20, 4:15 am)
Re: [PATCH 01/02/RFC] implement a stat cache, Luciano Rocha, (Sun Apr 20, 4:18 am)
Re: [PATCH 01/02/RFC] implement a stat cache, Linus Torvalds, (Sun Apr 20, 9:03 am)
Re: Git performance on OS X, David Kastrup, (Sun Apr 20, 9:17 am)
Re: Git performance on OS X, David Kastrup, (Sun Apr 20, 9:22 am)
Re: [PATCH 01/02/RFC] implement a stat cache, Luciano Rocha, (Sun Apr 20, 3:04 pm)
Re: [PATCH 01/02/RFC] implement a stat cache, Linus Torvalds, (Sun Apr 20, 3:29 pm)
Re: [PATCH 01/02/RFC] implement a stat cache, Linus Torvalds, (Sun Apr 20, 4:07 pm)
Re: [PATCH 01/02/RFC] implement a stat cache, Dmitry Potapov, (Sun Apr 20, 5:53 pm)
Re: [PATCH 01/02/RFC] implement a stat cache, Junio C Hamano, (Sun Apr 20, 6:21 pm)
Re: [PATCH 01/02/RFC] implement a stat cache, Linus Torvalds, (Sun Apr 20, 8:15 pm)
Re: [PATCH 01/02/RFC] implement a stat cache, Linus Torvalds, (Sun Apr 20, 8:20 pm)
Re: [PATCH 01/02/RFC] implement a stat cache, Johan Herland, (Mon Apr 21, 1:41 am)
Re: [PATCH 01/02/RFC] implement a stat cache, David Kastrup, (Mon Apr 21, 3:04 am)
Re: [PATCH 01/02/RFC] implement a stat cache, Junio C Hamano, (Mon Apr 21, 11:27 am)
Re: [PATCH 01/02/RFC] implement a stat cache, Linus Torvalds, (Mon Apr 21, 12:09 pm)
Re: [PATCH 01/02/RFC] implement a stat cache, Junio C Hamano, (Mon Apr 21, 1:06 pm)