From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5CF5CC43334 for ; Thu, 16 Jun 2022 13:54:46 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1377162AbiFPNyp (ORCPT ); Thu, 16 Jun 2022 09:54:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60044 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1377307AbiFPNyn (ORCPT ); Thu, 16 Jun 2022 09:54:43 -0400 Received: from mail-ed1-x534.google.com (mail-ed1-x534.google.com [IPv6:2a00:1450:4864:20::534]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 30D8C3A5D1 for ; Thu, 16 Jun 2022 06:54:42 -0700 (PDT) Received: by mail-ed1-x534.google.com with SMTP id n28so2293877edb.9 for ; Thu, 16 Jun 2022 06:54:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:references:user-agent:in-reply-to :message-id:mime-version; bh=y6LgYYl2irF2wLX2d+z7RK9gvu8CGJY57shuqn7TdiE=; b=NqhplSZ+5N8OMdD7fHSURD5K6+kLJeIhLRZhE86nZTvI3CB/nrlL2VOyuH6zHyLzTH BYP//inF+PHmVNrFbAqZS3BKBZM2jlIxqcfhmEm4xC4N8zKDHa/nULOVdYJd3Y0Lhq/q tJOuQkMHlXvXaLc95bRbspigm5QkuBMyhX6jp/irJVo2qtR+tdYMpMDyvHZPRl1kzRgx 2xtZ/cq8HdPuZDp9HybGbCUHeXbn7OukLkn7JEC3iMF0kjTScGpvtuWVXQCQgjVVjDxP 5gmUGUwPn+M4Zb9H5s5jWsW/hP9OUhOOmUB1gpCp+0egwUFZVXAApuacVe9maoMv9YO6 IVnw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:references:user-agent :in-reply-to:message-id:mime-version; bh=y6LgYYl2irF2wLX2d+z7RK9gvu8CGJY57shuqn7TdiE=; b=Yz2IrxxcvOqydgu097HNtNE7ZrKJs4HVVBKxHYt1oIiXcNE9ie26WFjajYTCv+F/cY LASWOqt7pHW+a+PYqR53BIoaY40VLhXcQsrRFwul0vvptJm7mZz2RckU6UjKDa+p8q21 N07Jaqn7RLTErGmwBdjcvCRUR9+H31LxxffWfpAGHLZ1x7pfuIWiu8sHMvD+Rw+puONv Q1EY37KxCJLGarK9SIL9ajk6RjZ36JgzDlnzEi5yLm3+yjaC2XdVXWHySw6tFKlrYpgp 4BySX+6WU/eLXEYr7rfaiEKPg1EL7oJJPuM433Gj7lBk3MOB52HTi/AGY8VgaA+jM5MZ z/MQ== X-Gm-Message-State: AJIora/TJqmtyoqIrM0MPNKbM1iQ9Nzx1sLSec49tK3ESFPd3ZnYg+I7 dsTAs93ApOZLQGoNrjb4Nck7/wYpm0s= X-Google-Smtp-Source: AGRyM1syqj5/5O9Bz4ykgmmpg6fLm8+goQ+jHY8RscJCs7t8rA67ZLkC56chTwemu3LRr/H4G8L5xw== X-Received: by 2002:a05:6402:1f82:b0:42f:c541:4fd1 with SMTP id c2-20020a0564021f8200b0042fc5414fd1mr6600950edc.172.1655387680685; Thu, 16 Jun 2022 06:54:40 -0700 (PDT) Received: from gmgdl (dhcp-077-248-183-071.chello.nl. [77.248.183.71]) by smtp.gmail.com with ESMTPSA id g10-20020a056402424a00b00435390befe2sm1054054edb.58.2022.06.16.06.54.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Jun 2022 06:54:39 -0700 (PDT) Received: from avar by gmgdl with local (Exim 4.95) (envelope-from ) id 1o1pxG-0015NV-VM; Thu, 16 Jun 2022 15:54:38 +0200 From: =?utf-8?B?w4Z2YXIgQXJuZmrDtnLDsA==?= Bjarmason To: Kyle Zhao via GitGitGadget Cc: git@vger.kernel.org, Derrick Stolee , Taylor Blau , Kyle Zhao Subject: Re: [PATCH v2] send-pack.c: add config push.useBitmaps Date: Thu, 16 Jun 2022 15:38:36 +0200 References: User-agent: Debian GNU/Linux bookworm/sid; Emacs 27.1; mu4e 1.7.12 In-reply-to: Message-ID: <220616.86fsk4ww69.gmgdl@evledraar.gmail.com> MIME-Version: 1.0 Content-Type: text/plain Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org On Thu, Jun 16 2022, Kyle Zhao via GitGitGadget wrote: > From: Kyle Zhao > > This allows you to disable bitmaps for "git push". Default is false. > > Reachability bitmaps are designed to speed up the "counting objects" > phase of generating a pack during a clone or fetch. They are not > optimized for Git clients sending a small topic branch via "git push". > In some cases (see [1]), using reachability bitmaps during "git push" > can cause significant performance regressions. > > Add a new "push.useBitmaps" config option to disable reachability > bitmaps during "git push". This allows reachability bitmaps to still > be used in other areas, such as "git rev-list --use-bitmap-index". > > [1]: https://lore.kernel.org/git/87zhoz8b9o.fsf@evledraar.gmail.com/ > [...] > + mk_test testrepo heads/main && > + git checkout main && > + GIT_TRACE2_EVENT="$PWD/default" \ > + git push testrepo main:test && > + test_subcommand git pack-objects --all-progress-implied --revs --stdout \ > + --thin --delta-base-offset -q --no-use-bitmap-index 30k at least) number of refs, and where the bitmaps were in some state of staleness (this usually being my working copy, where I rely on "git gc --auto").