git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Duy Nguyen <pclouds@gmail.com>
To: Junio C Hamano <gitster@pobox.com>
Cc: Git Mailing List <git@vger.kernel.org>
Subject: Re: What's cooking in git.git (Aug 2018, #04; Fri, 17)
Date: Sat, 18 Aug 2018 08:29:04 +0200	[thread overview]
Message-ID: <CACsJy8BCJSj__vmw-S0komzWyQGyFS0GjXT1fV6VCX_MLPXwHA@mail.gmail.com> (raw)
In-Reply-To: <xmqqva88aa0c.fsf@gitster-ct.c.googlers.com>

On Sat, Aug 18, 2018 at 12:44 AM Junio C Hamano <gitster@pobox.com> wrote:
> * nd/unpack-trees-with-cache-tree (2018-08-13) 5 commits
>  - unpack-trees: reuse (still valid) cache-tree from src_index
>  - unpack-trees: reduce malloc in cache-tree walk
>  - unpack-trees: optimize walking same trees with cache-tree
>  - unpack-trees: add performance tracing
>  - trace.h: support nested performance tracing
>
>  The unpack_trees() API used in checking out a branch and merging
>  walks one or more trees along with the index.  When the cache-tree
>  in the index tells us that we are walking a tree whose flattened
>  contents is known (i.e. matches a span in the index), as linearly
>  scanning a span in the index is much more efficient than having to
>  open tree objects recursively and listing their entries, the walk
>  can be optimized, which is done in this topic.
>
>  Will merge to and cook in 'next'.

Please hold.

I was going to address your "The last step feels a bit scary" comment
by auditing and adding some cache-tree validation. I'm seeing some bad
cache-tree when running more validation through the test suite. Maybe
it's just bugs in my validation code, but better be safe than sorry.
-- 
Duy

  reply	other threads:[~2018-08-18  6:29 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-08-17 22:44 What's cooking in git.git (Aug 2018, #04; Fri, 17) Junio C Hamano
2018-08-18  6:29 ` Duy Nguyen [this message]
2018-08-18  6:59 ` Jonathan Nieder
2018-08-20 17:26   ` Junio C Hamano
2018-08-20 18:14     ` Derrick Stolee
2018-08-18  9:34 ` Christian Couder
2018-08-18 11:34   ` Ævar Arnfjörð Bjarmason
2018-08-18 12:54     ` Christian Couder
2018-08-18 11:10 ` Ævar Arnfjörð Bjarmason
2018-08-20 10:23 ` Phillip Wood
2018-08-20 17:44   ` Eric Sunshine
2018-08-20 19:36   ` pw/rebase-i-author-script-fix, was " Johannes Schindelin
2018-08-20 18:11 ` Stefan Beller
2018-08-20 21:32   ` Junio C Hamano
2018-08-20 18:19 ` Jonathan Nieder

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=CACsJy8BCJSj__vmw-S0komzWyQGyFS0GjXT1fV6VCX_MLPXwHA@mail.gmail.com \
    --to=pclouds@gmail.com \
    --cc=git@vger.kernel.org \
    --cc=gitster@pobox.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 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).