From: Eric Wong <e@80x24.org>
To: Jeff King <peff@peff.net>
Cc: "Junio C Hamano" <gitster@pobox.com>,
git@vger.kernel.org, "Nicolas Pitre" <nico@fluxnic.net>,
"Lukas Sandström" <luksan@gmail.com>
Subject: Re: What's cooking in git.git (Aug 2016, #02; Thu, 4)
Date: Fri, 5 Aug 2016 08:02:31 +0000 [thread overview]
Message-ID: <20160805080231.GA25379@starla> (raw)
In-Reply-To: <20160805074552.6ow4h3lwdy7yxqva@sigill.intra.peff.net>
(Fixed Nico's address)
Jeff King <peff@peff.net> wrote:
> On Thu, Aug 04, 2016 at 11:34:35PM +0000, Eric Wong wrote:
> > Junio C Hamano <gitster@pobox.com> wrote:
> > > [Graduated to "master"]
> >
> > > * ew/http-walker (2016-07-18) 4 commits
> > > (merged to 'next' on 2016-07-18 at a430a97)
> > > + list: avoid incompatibility with *BSD sys/queue.h
> > > (merged to 'next' on 2016-07-13 at 8585c03)
> > > + http-walker: reduce O(n) ops with doubly-linked list
> >
> > Yay! This finally introduces the Linux kernel linked list
> > into git. I'm not sure if it's worth the effort to introduce
> > cleanup commits to start using it in places where we already
> > have doubly-linked list implementations:
> >
> > (+Cc Nicolas and Lukas)
> > * sha1_file.c delta_base_cache_lru is open codes this
> > * builtin/pack-redundant.c could probably be adapted, too
> > ... any more?
>
> I just introduced another doubly-linked list in [1]. It adds some MRU
> features on top of the list, but it could in theory be built on top of a
> generic doubly-linked list.
Yes, and you'd be avoiding the extra mallocs and be able to use
list_entry (aka `container_of`) so it could be faster, too.
I was thinking packed_git could also be a doubly-linked list
anyways since it would allow easier removal of unlinked pack
entries. My use case would be long-running "cat-file --batch"
processes being able to detect unlinked packs after someone
else runs GC.
> It's also possible the delta-base-cache stuff could build on top of that
> same code, but I didn't look closely at it.
>
> -Peff
>
> [1] http://public-inbox.org/git/20160729040659.GC22408@sigill.intra.peff.net/
next prev parent reply other threads:[~2016-08-05 8:02 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-08-04 22:28 What's cooking in git.git (Aug 2016, #02; Thu, 4) Junio C Hamano
2016-08-04 22:56 ` Mike Hommey
2016-08-04 23:32 ` Junio C Hamano
2016-08-04 23:39 ` Mike Hommey
2016-08-08 6:48 ` Torsten Bögershausen
2016-08-08 6:50 ` Mike Hommey
2016-08-04 23:10 ` Philip Oakley
2016-08-04 23:32 ` Junio C Hamano
2016-08-04 23:34 ` Eric Wong
2016-08-05 6:25 ` Junio C Hamano
2016-08-05 7:45 ` Jeff King
2016-08-05 8:02 ` Eric Wong [this message]
2016-08-05 8:11 ` Jeff King
2016-08-05 8:26 ` Eric Wong
2016-08-05 8:34 ` Jeff King
2016-08-05 9:14 ` Eric Wong
2016-08-07 9:06 ` 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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20160805080231.GA25379@starla \
--to=e@80x24.org \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.com \
--cc=luksan@gmail.com \
--cc=nico@fluxnic.net \
--cc=peff@peff.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 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.