From: "Nguyen Thai Ngoc Duy" <pclouds@gmail.com>
To: "Andreas Ericsson" <ae@op5.se>
Cc: "Jakub Narebski" <jnareb@gmail.com>,
"Edward Ned Harvey" <git@nedharvey.com>,
git@vger.kernel.org
Subject: Re: git performance
Date: Thu, 23 Oct 2008 20:04:07 +0700 [thread overview]
Message-ID: <fcaeb9bf0810230604u6db6d31cr91153b3cbfa0bbb6@mail.gmail.com> (raw)
In-Reply-To: <49002B27.50201@op5.se>
On 10/23/08, Andreas Ericsson <ae@op5.se> wrote:
> Jakub Narebski wrote:
>
> > "Edward Ned Harvey" <git@nedharvey.com> writes:
> >
> >
> > > I see things all over the Internet saying git is fast. I'm
> > > currently struggling with poor svn performance and poor attitude of
> > > svn developers, so I'd like to consider switching to git. A quick
> > > question first.
> > >
> > > The core of the performance problem I'm facing is the need to "walk
> > > the tree" for many thousand files. Every time I do "svn update" or
> > > "svn status" the svn client must stat every file to check for local
> > > modifications (a coffee cup or a beer worth of stats). In essence,
> > > this is unavoidable if there is no mechanism to constantly monitor
> > > filesystem activity during normal operations. Analogous to
> > > filesystem journaling.
> > >
> > > So - I didn't see anything out there saying "git is fast because it
> > > uses inotify" or anything like that. Perhaps git would not help me
> > > at all? Because git still needs to stat all the files in the tree?
> > >
> >
> > http://git.or.cz/gitwiki/GitBenchmarks
> >
> > While it should be possible to use 'assume unchanged' bit together
> > with inotify / icron, it is not something tha is done; IIRC Mercurial
> > had Linux-only InotifyPlugin...
> >
> >
>
> Well, inotify() is Linux specific, so it'd be quite hard to support on
> another platform. Emulating it with a billion stat() calls feels rather
> like a disk (and I/O performance) killer.
There is "filemon" on Windows, which monitors file access. I don't
know how it impacts performance though. A quick search revealed kqueue
for FreeBSD/Mac OSX.
--
Duy
prev parent reply other threads:[~2008-10-23 13:05 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-10-22 20:17 git performance Edward Ned Harvey
2008-10-22 20:36 ` Jeff King
2008-10-22 21:13 ` Peter Harris
2008-10-22 21:55 ` Edward Ned Harvey
2008-10-23 7:11 ` Andreas Ericsson
2008-10-23 7:11 ` Andreas Ericsson
2008-10-23 7:41 ` Andreas Ericsson
2008-10-23 12:16 ` Matthieu Moy
2008-10-23 16:39 ` Jeff King
[not found] ` <000001c9358f$232bac70$69830550$@com>
2008-10-24 14:29 ` Jeff King
2008-10-24 17:42 ` George Shammas
2008-10-24 19:06 ` Jakub Narebski
2008-10-24 17:53 ` Linus Torvalds
2008-10-24 18:20 ` Jeff King
2008-10-23 18:31 ` Daniel Barkalow
2008-10-23 22:24 ` Nanako Shiraishi
2008-10-24 3:56 ` Daniel Barkalow
2008-10-24 7:55 ` Pete Harlan
2008-10-24 23:10 ` Pete Harlan
2008-10-22 22:42 ` Jakub Narebski
2008-10-23 7:43 ` Andreas Ericsson
2008-10-23 13:04 ` Nguyen Thai Ngoc Duy [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=fcaeb9bf0810230604u6db6d31cr91153b3cbfa0bbb6@mail.gmail.com \
--to=pclouds@gmail.com \
--cc=ae@op5.se \
--cc=git@nedharvey.com \
--cc=git@vger.kernel.org \
--cc=jnareb@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).