git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH 2/4] revision walk: optionally use sparse reachability

From
Derrick Stolee <stolee@gmail.com>
Date
Mar 12, 2019, 13:59 UTC
Message-ID
<b414cb29-05a2-333e-f734-540eb0d1eaa4@gmail.com>
In-Reply-To
<20190312131858.26115-3-nwf20@cl.cam.ac.uk>
On 3/12/2019 9:18 AM, Nathaniel Filardo wrote:
Show 35 quoted lines
> The only caller that passes a non-zero value to prepare_revision_walk
> after this patch is builtin/pack-objects.  Without this, sparsity seems
> to do little good therein, as prepare_revision_walk will densely
> propagate UNINTERESTING flags from trees to tree contents, before
> mark_edges_uninteresting has a chance to be faster by being sparse.
> 
> Signed-off-by: Nathaniel Filardo <nwf20@cl.cam.ac.uk>
> ---
>  bisect.c                         |  2 +-
>  blame.c                          |  2 +-
>  builtin/checkout.c               |  2 +-
>  builtin/commit.c                 |  2 +-
>  builtin/describe.c               |  2 +-
>  builtin/fast-export.c            |  2 +-
>  builtin/fmt-merge-msg.c          |  2 +-
>  builtin/log.c                    | 10 +++++-----
>  builtin/merge.c                  |  2 +-
>  builtin/pack-objects.c           |  4 ++--
>  builtin/rev-list.c               |  2 +-
>  builtin/shortlog.c               |  2 +-
>  bundle.c                         |  2 +-
>  http-push.c                      |  2 +-
>  merge-recursive.c                |  2 +-
>  pack-bitmap-write.c              |  2 +-
>  pack-bitmap.c                    |  4 ++--
>  reachable.c                      |  4 ++--
>  ref-filter.c                     |  2 +-
>  remote.c                         |  2 +-
>  revision.c                       | 10 ++++++----
>  revision.h                       |  2 +-
>  sequencer.c                      |  6 +++---
>  shallow.c                        |  2 +-
>  submodule.c                      |  4 ++--
>  t/helper/test-revision-walking.c |  2 +-
>  26 files changed, 41 insertions(+), 39 deletions(-)

This patch is very noisy. Perhaps the pattern established in 4f6d26b1: "list-objects: consume sparse tree walk" should be reversed and instead include a 'sparse_tree_walk' setting into 'struct rev_info'.

Changing so many method prototypes is rather invasive and unlikely to benefit many of these callers.

If the setting is added to 'struct rev_info', then you'll want to remove the parameter from mark_edges_uninteresting().

Thanks, -Stolee

Previous: Nathaniel Filardo
Message 8 of 8 in “Speed up repacking when lots of pack-kept objects”
  1. 0/4 Speed up repacking when lots of pack-kept objectsNathaniel Filardo, Mar 12, 2019
  2. 3/4 repack: add --sparse and pass to pack-objectsNathaniel Filardo, Mar 12, 2019
  3. Derrick StoleeMar 12, 2019
  4. Dr N.W. FilardoMar 12, 2019
  5. 1/4 count-objects: report statistics about kept packsNathaniel Filardo, Mar 12, 2019
  6. 4/4 repack: optionally assume transitive kept packsNathaniel Filardo, Mar 12, 2019
  7. 2/4 revision walk: optionally use sparse reachabilityNathaniel Filardo, Mar 12, 2019
  8. Derrick StoleeMar 12, 2019

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.