From: Robin Rosenberg <robin.rosenberg.lists@dewire.com>
To: Nicolas Pitre <nico@cam.org>
Cc: Junio C Hamano <junkio@cox.net>, git@vger.kernel.org
Subject: Re: [PATCH] diff: release blobs after generating textual diff.
Date: Sun, 6 May 2007 23:36:26 +0200 [thread overview]
Message-ID: <200705062336.28201.robin.rosenberg.lists@dewire.com> (raw)
In-Reply-To: <alpine.LFD.0.99.0705061301190.24220@xanadu.home>
söndag 06 maj 2007 skrev Nicolas Pitre:
> On Sun, 6 May 2007, Junio C Hamano wrote:
>
> > This reduces the memory pressure when dealing with many paths.
> >
> > An unscientific test of running "diff-tree --stat --summary -M"
> > between v2.6.19 and v2.6.20-rc1 in the linux kernel repository
> > indicates that the number of minor faults are reduced by 2/3
> > (153k vs 49k).
> >
> > Signed-off-by: Junio C Hamano <junkio@cox.net>
> > ---
> >
> > * This is still a WIP, not in the sense that it breaks anything
> > (it doesn't seem to), but in the sense that it is not known
> > if it is useful in general and would make that much of a
> > difference with a project much larger than the kernel.
>
> This can only be good. People are really starting to use Git with
> gigantic repos on limited memory hardware.
This did wonders on the usually unreasonable diffs on huge repos. The openoffice
diff mentioned in the openoffice thread went from 6 to ~3 minutes, and most importantly
the computer was perfectly usable meanwhile. Git memory usage dropped from 1,7GB to
400MB.
A more reasonable test diffing against a recent branch , master vs v33M4-patches, in
the eclipse repo some of you have didn't gain much in performance, but memory usage
dropped from 700MB to a peak just under 400MB, which makes a huge difference in
responsiveness for the other applications that I have, since they were not swapped out
during the diff.
-- robin
next prev parent reply other threads:[~2007-05-06 21:36 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-05-06 8:47 [PATCH] diff: release blobs after generating textual diff Junio C Hamano
2007-05-06 8:49 ` [PATCH] diff.c: truly honor size_only request for populate_filespec Junio C Hamano
2007-05-06 8:51 ` [PATCH] diff: use filespec as in-place size cache Junio C Hamano
2007-05-06 17:03 ` [PATCH] diff: release blobs after generating textual diff Nicolas Pitre
2007-05-06 21:36 ` Robin Rosenberg [this message]
2007-05-08 20:58 ` Junio C Hamano
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=200705062336.28201.robin.rosenberg.lists@dewire.com \
--to=robin.rosenberg.lists@dewire.com \
--cc=git@vger.kernel.org \
--cc=junkio@cox.net \
--cc=nico@cam.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.
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).