From: Johannes Schindelin <Johannes.Schindelin@gmx.de>
To: Steffen Prohaska <prohaska@zib.de>
Cc: Linus Torvalds <torvalds@linux-foundation.org>,
Junio C Hamano <gitster@pobox.com>,
Git Mailing List <git@vger.kernel.org>
Subject: Re: [PATCH] Avoid running lstat(2) on the same cache entry.
Date: Sun, 20 Jan 2008 15:18:48 +0000 (GMT) [thread overview]
Message-ID: <alpine.LSU.1.00.0801201515060.5731@racer.site> (raw)
In-Reply-To: <15ECE22B-FCBB-4F12-919B-694E48D48E0D@zib.de>
Hi,
On Sun, 20 Jan 2008, Steffen Prohaska wrote:
> On Jan 20, 2008, at 2:48 AM, Johannes Schindelin wrote:
>
> > On Sat, 19 Jan 2008, Linus Torvalds wrote:
> >
> > > Best time before:
> > >
> > > [torvalds@woody linux]$ time git commit > /dev/null
> > > real 0m0.399s
> > > user 0m0.232s
> > > sys 0m0.164s
> > >
> > > Best time after:
> > >
> > > [torvalds@woody linux]$ time git commit > /dev/null
> > > real 0m0.254s
> > > user 0m0.140s
> > > sys 0m0.112s
> >
> > Wow.
> >
> > > I bet you'll see a much bigger performance improvement from this on
> > > Windows in particular.
> >
> > I bet so, too. Traditionally, filesystem calls are painfully slow on
> > Windows.
> >
> > But I cannot test before Monday, so I would not be mad if somebody else
> > could perform some tests on Windows.
>
> Here are timings for Windows XP running in a virtual machine on a
> Laptop. The work tree contains 7k files. I stripped user and
> sys times because they are apparently meaningless for MINGW.
>
> Best time before:
>
> $ time git commit >/dev/null
> real 0m1.662s
>
> Best time after:
>
> $ time git commit >/dev/null
> real 0m1.196s
>
> The absolute time improvement is obviously larger, although the
> relative improvement is slightly smaller than in Linus' example.
>
>
> And here are the timings for the host system, which is Mac OS X,
> on the same work tree.
>
> Best time before:
>
> $ time git commit >/dev/null
> real 0m0.571s
> user 0m0.332s
> sys 0m0.237s
>
> Best time after:
>
> $ time git commit >/dev/null
> real 0m0.463s
> user 0m0.273s
> sys 0m0.186s
>
> Interestingly, the relative improvements are even smaller on Mac
> OS X.
Still, nothing to spit at.
FWIW I have made two patches which should be probably folded into Linus'
patch; I will post them as a reply.
Ciao,
Dscho
next prev parent reply other threads:[~2008-01-20 15:19 UTC|newest]
Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-01-19 3:25 Updated in-memory index cleanup Linus Torvalds
2008-01-19 7:42 ` [PATCH] index: be careful when handling long names Junio C Hamano
2008-01-19 7:45 ` [PATCH] Avoid running lstat(2) on the same cache entry Junio C Hamano
2008-01-19 19:47 ` Linus Torvalds
2008-01-19 19:58 ` Linus Torvalds
2008-01-20 1:22 ` Linus Torvalds
2008-01-20 1:34 ` Linus Torvalds
2008-01-20 1:48 ` Johannes Schindelin
2008-01-20 2:02 ` Linus Torvalds
2008-01-20 10:33 ` Steffen Prohaska
2008-01-20 14:15 ` Johannes Schindelin
2008-01-21 0:18 ` Junio C Hamano
2008-01-20 15:10 ` Steffen Prohaska
2008-01-20 15:18 ` Johannes Schindelin [this message]
2008-01-20 15:19 ` [PATCH] Also use unpack_trees() in do_diff_cache() Johannes Schindelin
2008-01-20 20:32 ` Linus Torvalds
2008-01-20 21:53 ` Linus Torvalds
2008-01-20 23:34 ` Johannes Schindelin
2008-01-20 23:58 ` Linus Torvalds
2008-01-21 0:19 ` Johannes Schindelin
2008-01-20 15:21 ` [PATCH] Try to resurrect the handling for 'diff-index -m' Johannes Schindelin
2008-01-20 18:20 ` [PATCH] Avoid running lstat(2) on the same cache entry Linus Torvalds
2008-01-20 20:03 ` Brian Downing
2008-01-20 21:40 ` Steffen Prohaska
2008-01-20 22:09 ` Linus Torvalds
2008-01-20 2:42 ` Johannes Schindelin
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
List information: http://vger.kernel.org/majordomo-info.html
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=alpine.LSU.1.00.0801201515060.5731@racer.site \
--to=johannes.schindelin@gmx.de \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.com \
--cc=prohaska@zib.de \
--cc=torvalds@linux-foundation.org \
/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.
Code repositories for project(s) associated with this public inbox
https://80x24.org/mirrors/git.git
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 read-only IMAP folder(s) and NNTP newsgroup(s).