Backports Archive on
 help / color / Atom feed
From: Johannes Berg <>
Subject: Re: [PATCH] backports: speed up building with bash
Date: Tue, 03 Dec 2019 16:18:26 +0100
Message-ID: <> (raw)
In-Reply-To: <> (sfid-20191203_160632_743093_BF954A9E)

On Tue, 2019-12-03 at 16:06 +0100, Johannes Berg wrote:
> From: Johannes Berg <>
> When building with /bin/sh -> bash, things are SUPER slow (at least
> for me), because bash takes a LOOONG time to look at the environment
> variables (and we typically have around 6k), adding ~300ms to each
> bash invocation for me.

The real results are like this:

Completely clean build, after git clean -fdxq, but I have ccache primed
so all the stuff is build overhead - gcc is ccache and just returns
directly from the cache.

without the patch:
real	9m17.180s
user	24m38.063s
sys	0m32.138s

with the patch:
real	0m18.157s
user	0m24.553s
sys	0m13.342s

I'll let those results speak for themselves ...


To unsubscribe from this list: send the line "unsubscribe backports" in

  parent reply index

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-12-03 15:06 Johannes Berg
2019-12-03 15:15 ` Johannes Berg
2019-12-03 15:18 ` Johannes Berg [this message]
2019-12-03 15:21   ` Johannes Berg

Reply instructions:

You may reply publically 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:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \ \ \ \

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

Backports Archive on

Archives are clonable:
	git clone --mirror backports/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 backports backports/ \
	public-inbox-index backports

Example config snippet for mirrors

Newsgroup available over NNTP:

AGPL code for this site: git clone