From: Scott Lamb <slamb@slamb.org>
To: Brian Swetland <swetland@google.com>
Cc: Junio C Hamano <gitster@pobox.com>, Simon Hausmann <simon@lst.de>,
git@vger.kernel.org, Han-Wen Nienhuys <hanwen@google.com>
Subject: Re: [PATCH] git-p4: Fix support for symlinks.
Date: Tue, 07 Aug 2007 18:36:25 -0700 [thread overview]
Message-ID: <46B91E19.9010005@slamb.org> (raw)
In-Reply-To: <20070807091049.GA13308@bulgaria>
Brian Swetland wrote:
> One observation on git-p4 -- it's a little memory hungry when processing
> large syncs. I haven't tried incremental syncs on top of the initial
> one though -- if it's only the initial that's expensive it's not that
> big a deal.
>
> It seemed to top out around 988MB resident. The branch I was importing
> is about 562MB when checked out and the resulting git repository is
> about 175MB.
While importing each change, I think git-p4 puts into memory two copies
of the contents of all changed files, one in p4CmdList and one in
readP4Files. (That's the raw contents, not just the delta.) I don't
think there's any fundamental reason it couldn't stream them instead.
So incremental syncs may or may not take less memory. If the first
change imports a huge project and no subsequent change ever touches all
those files at once, then yeah. But if, say, you periodically change the
copyright dates in all files in the repository, you'll have this memory
usage whenever syncing such a change.
As long as we're listing git-p4 complaints, here are a couple of mine:
1) coding style. *self-nag* Simon Hausmann mentioned he was happy to
accept patches...and I made one up a while ago; I just need to do a
merge and final check that I haven't broken anything before sending it off.
2) it breaks on tempfile purges. My previous employer has these in their
repository, and I think for the moment they're working around it by
treating a "purge" as a "delete". If I read the Perforce documentation
right, though, only the latest version of a tempfile's contents is kept
in the repository anyway. Their history can't be captured accurately, so
the proper thing is probably to omit tempfiles entirely. (And deleting
files when they become tempfiles and creating files when they become a
normal type.)
Best regards,
Scott
--
Scott Lamb <http://www.slamb.org/>
next prev parent reply other threads:[~2007-08-08 1:36 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-08-07 8:25 [PATCH] git-p4: Fix support for symlinks Simon Hausmann
2007-08-07 8:40 ` Junio C Hamano
2007-08-07 9:10 ` Brian Swetland
2007-08-08 1:36 ` Scott Lamb [this message]
-- strict thread matches above, loose matches on Subject: below --
2007-08-07 10:28 Simon Hausmann
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=46B91E19.9010005@slamb.org \
--to=slamb@slamb.org \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.com \
--cc=hanwen@google.com \
--cc=simon@lst.de \
--cc=swetland@google.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.