From: Nicolas Pitre <nico@fluxnic.net>
To: Pal-Kristian Engstad <pal_engstad@naughtydog.com>
Cc: Simon Hausmann <simon@lst.de>, Junio C Hamano <gitster@pobox.com>,
"git@vger.kernel.org" <git@vger.kernel.org>
Subject: Re: [PATCH 3/3] git-p4: improve submit performance on new P4 servers
Date: Thu, 21 Jan 2010 22:59:24 -0500 (EST) [thread overview]
Message-ID: <alpine.LFD.2.00.1001212242550.1726@xanadu.home> (raw)
In-Reply-To: <4B591455.7050409@naughtydog.com>
On Thu, 21 Jan 2010, Pal-Kristian Engstad wrote:
> Nicolas Pitre wrote:
> > On Thu, 21 Jan 2010, Pal-Kristian Engstad wrote:
> >
> >> Improve git-p4 submit performance on newer (from 2009.2) Perforce
> >> servers by changing "p4 diff -du" to "p4 diff -dub". This change is
> >> harmless since the output is only used for display purposes.
> >>
> >> Signed-off-by: Pal-Kristian Engstad <pal_engstad@naughtydog.com>
> >
> > Why is the b flag impacting performance?
>
> That's a very good question. The release notes say that they've been
> changing how 'p4 diff -du' works, but the net effect of it all is that
> it stats all files in the whole working set.
And so does git.
> For large projects, this
> takes forever. We say pauses of 3 minutes per submit...
This is abominable.
> > And even if for display purposes, why might you wish not to see
> > differences in whitespace changes?
>
> That's a good point, but what alternative is there?
Have the option of not seeing the diff in the submit template maybe?
I agree that P4 is slow. Painfully slow. I even needed to make git-p4
even slower by adding a time.sleep(1) in p4_build_cmd() otherwise the
server would randomly drop the connection with the client when being
contacted back to back.
I'm so glad Simon wrote this git-p4 nevertheless. Makes working with P4
almost enjoyable.
Nicolas
prev parent reply other threads:[~2010-01-22 3:59 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-01-22 2:06 [PATCH 3/3] git-p4: improve submit performance on new P4 servers Pal-Kristian Engstad
2010-01-22 2:49 ` Nicolas Pitre
2010-01-22 2:58 ` Pal-Kristian Engstad
2010-01-22 3:59 ` Nicolas Pitre [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=alpine.LFD.2.00.1001212242550.1726@xanadu.home \
--to=nico@fluxnic.net \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.com \
--cc=pal_engstad@naughtydog.com \
--cc=simon@lst.de \
/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).