Re: [PATCH] inotify to minimize stat() calls

2013-04-26 Thread Robert Zeh
On Thu, Apr 25, 2013 at 4:20 PM, Duy Nguyen wrote: > On Fri, Apr 26, 2013 at 2:44 AM, Robert Zeh > wrote: >>> Can you just replace lstat/stat with cached_lstat/stat inside >>> git-compat-util.h and not touch all files at once? I think you may >>> need t

Re: [PATCH] inotify to minimize stat() calls

2013-04-25 Thread Robert Zeh
On Wed, Apr 24, 2013 at 4:32 PM, Duy Nguyen wrote: > On Thu, Apr 25, 2013 at 3:20 AM, Robert Zeh > wrote: >> Here is a patch that creates a daemon that tracks file >> state with inotify, writes it out to a file upon request, >> and changes most of the calls to stat to

Re: [PATCH] inotify to minimize stat() calls

2013-04-25 Thread Robert Zeh
On Thu, Apr 25, 2013 at 3:18 AM, Thomas Rast wrote: > > Robert Zeh writes: > > > Here is a patch that creates a daemon that tracks file > > state with inotify, writes it out to a file upon request, > > and changes most of the calls to stat to use said cache. > >

Re: [PATCH] inotify to minimize stat() calls

2013-04-24 Thread Robert Zeh
cache that is maintained by a daemon that maintains file system state via inotify. Signed-off-by: Robert Zeh --- abspath.c| 9 ++- bisect.c | 3 +- check-racy.c | 2 +- combine-diff.c | 3 +- command-list.txt | 1 + config.c

Re: inotify to minimize stat() calls

2013-02-11 Thread Robert Zeh
On Sun, Feb 10, 2013 at 9:21 PM, Duy Nguyen wrote: > On Mon, Feb 11, 2013 at 2:03 AM, Robert Zeh > wrote: >> On Sat, Feb 9, 2013 at 1:35 PM, Junio C Hamano wrote: >>> Ramkumar Ramachandra writes: >>> >>>> This is much better than Junio's sugge

Re: inotify to minimize stat() calls

2013-02-10 Thread Robert Zeh
On Feb 10, 2013, at 1:26 PM, Martin Fick wrote: > On Sunday, February 10, 2013 12:03:00 pm Robert Zeh wrote: >> On Sat, Feb 9, 2013 at 1:35 PM, Junio C Hamano > wrote: >>> Ramkumar Ramachandra writes: >>>> This is much better than Junio's suggestion to

Re: inotify to minimize stat() calls

2013-02-10 Thread Robert Zeh
etwork communication, which I think would make things more secure. It would simplify the rendezvous by insisting on well known locations in $GIT_DIR. Robert Zeh -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: inotify to minimize stat() calls

2013-02-08 Thread Robert Zeh
to be implied >by putting the unix domain socket in $GIT_DIR. Could we automatically reject >connections from anything other than localhost when using TCP? Robert Zeh On Feb 8, 2013, at 8:56 PM, Junio C Hamano wrote: > Junio C Hamano writes: > >> I checked read-cache.c and p