From: Nicolas Pitre <nico@cam.org>
To: Junio C Hamano <junkio@cox.net>
Cc: git@vger.kernel.org
Subject: Re: [PATCH 2/2] Teach "delta" attribute to pack-objects.
Date: Tue, 22 May 2007 12:04:59 -0400 (EDT) [thread overview]
Message-ID: <alpine.LFD.0.99.0705221200010.3366@xanadu.home> (raw)
In-Reply-To: <11795608922961-git-send-email-junkio@cox.net>
On Sat, 19 May 2007, Junio C Hamano wrote:
> This teaches pack-objects to use .gitattributes mechanism so
> that the user can specify certain blobs are not worth spending
> CPU cycles to attempt deltification.
[...]
> @@ -1349,6 +1376,10 @@ static void find_deltas(struct object_entry **list, int window, int depth)
>
> if (entry->size < 50)
> continue;
> +
> + if (entry->no_try_delta)
> + continue;
> +
> free_delta_index(n->index);
> n->index = NULL;
> free(n->data);
> @@ -1376,6 +1407,8 @@ static void find_deltas(struct object_entry **list, int window, int depth)
> m = array + other_idx;
> if (!m->entry)
> break;
> + if (m->entry->no_try_delta)
> + continue;
> if (try_delta(n, m, max_depth) < 0)
> break;
> }
This last hunk is unnecessary. Because of the other hunk above, the
no_try_delta objects will never get into the m array.
Well done otherwise. This attribute thing is really nice.
Nicolas
prev parent reply other threads:[~2007-05-22 16:05 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-05-19 7:48 [PATCH 1/2] pack-objects: pass fullname down to add_object_entry() Junio C Hamano
2007-05-19 7:48 ` [PATCH 2/2] Teach "delta" attribute to pack-objects Junio C Hamano
2007-05-19 16:10 ` Dana How
2007-05-19 20:03 ` Junio C Hamano
2007-05-19 23:56 ` Dana How
2007-05-22 16:04 ` 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.0.99.0705221200010.3366@xanadu.home \
--to=nico@cam.org \
--cc=git@vger.kernel.org \
--cc=junkio@cox.net \
/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).