From: Jeff King <peff@peff.net>
To: "brian m. carlson" <sandals@crustytoothpaste.net>,
git@vger.kernel.org, Junio C Hamano <gitster@pobox.com>
Subject: Re: [PATCH] add a script to diff rendered documentation
Date: Mon, 6 Aug 2018 09:39:55 -0400 [thread overview]
Message-ID: <20180806133954.GA31282@sigill.intra.peff.net> (raw)
In-Reply-To: <20180805204930.GA202464@genre.crustytoothpaste.net>
On Sun, Aug 05, 2018 at 08:49:31PM +0000, brian m. carlson wrote:
> > +parallel=8
>
> I'm not sure -j8 is a great default. There are still a lot of
> two-core/four-thread machines out there, such as my laptop (from 2016).
> Maybe we should default this to 1 unless -j is provided, like make does.
I agree that "8" is arbitrary and probably not universally applicable. I
was just hoping to not have to say "-j8" every time I ran it (I already
"alias make='make -j8'" in my shell, but obviously it doesn't kick in
inside a script).
I guess some other options are:
1. Respect a config variable. Which seems funny, since this isn't a
git command.
2. Respect an environment variable (we already do a similar thing with
GIT_PERF_MAKE_OPTS, though it feels pretty clumsy).
I've also considered just setting MAKEFLAGS=-j8 in my environment,
but it always seemed like an abuse of a variable intended for
communicating between makes.
3. Default to number of CPUs, which is what a lot of other threading
in Git does. Unfortunately getting that from the shell is
non-trivial. I'm OK with $(grep -c ^processor /proc/cpuinfo), but
people on non-Linux platforms would have to fill in their own
implementation.
-Peff
next prev parent reply other threads:[~2018-08-06 13:39 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-08-03 20:52 [PATCH] add a script to diff rendered documentation Jeff King
2018-08-03 21:33 ` Eric Sunshine
2018-08-03 21:38 ` Jeff King
2018-08-03 21:44 ` Eric Sunshine
2018-08-03 21:47 ` Junio C Hamano
2018-08-03 22:41 ` Eric Sunshine
2018-08-05 20:49 ` brian m. carlson
2018-08-06 13:39 ` Jeff King [this message]
2018-08-06 13:42 ` Jeff King
2018-08-06 15:16 ` Junio C Hamano
2018-08-06 16:57 ` Jeff King
2018-08-06 15:01 ` Jonathan Nieder
2018-08-06 16:42 ` Jeff King
2018-08-06 17:37 ` Jeff King
2018-08-06 18:25 ` Junio C Hamano
2018-08-06 18:58 ` Jeff King
2018-08-06 19:29 ` Junio C Hamano
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=20180806133954.GA31282@sigill.intra.peff.net \
--to=peff@peff.net \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.com \
--cc=sandals@crustytoothpaste.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 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).