From: Andres Freund <andres@anarazel.de>
To: Justin Pryzby <pryzby@telsasoft.com>
Cc: Andrew Dunstan <andrew@dunslane.net>
Cc: Melih Mutlu <m.melihmutlu@gmail.com>
Cc: pgsql-hackers@postgresql.org
Subject: Re: Mingw task for Cirrus CI
Date: Fri, 8 Apr 2022 18:02:41 -0700
Message-ID: <20220409010241.7httalsahzg7rmyl@alap3.anarazel.de> (raw)
In-Reply-To: <20220409002758.GM24419@telsasoft.com>
References: <CAGPVpCSKS9E0An4=e7ZDnme+y=WOcQFJYJegKO8kE9=gh8NJKQ@mail.gmail.com>
<20220322001559.mln5mexnhvijuntn@alap3.anarazel.de>
<CAGPVpCRTg_zUfDB393EZLkuMkJ0UMu_N06TpgvAjH4Y8NcMzfg@mail.gmail.com>
<20220331002618.npsfms3sijof7z7n@alap3.anarazel.de>
<99db8656-9722-65c4-39b7-59fc14670c66@dunslane.net>
<20220407171021.h5cnwfs355zdug7v@alap3.anarazel.de>
<20220409002758.GM24419@telsasoft.com>
Hi,
On 2022-04-08 19:27:58 -0500, Justin Pryzby wrote:
> On Thu, Apr 07, 2022 at 10:10:21AM -0700, Andres Freund wrote:
> > On 2022-04-06 11:03:37 -0400, Andrew Dunstan wrote:
> > > On 3/30/22 20:26, Andres Freund wrote:
> > > > Could you try using dash to invoke configure here, and whether it makes configure faster?
> > > I got weird failures re libxml/parser.h when I tried with dash. See
> > > <https://cirrus-ci.com/task/5963254039052288; (It would be nice if we
> > > could see config.log on failure.)
> >
> > Since dash won't help us to get the build time down sufficiently, and the
> > tests don't pass without a separate build tree, I looked at what makes
> > config/prep_buildtree so slow.
> >
> > It's largely just bad code. The slowest part are spawning one expr and mkdir
> > -p for each directory. One 'cmp' for each makefile doesn't help either.
> >
> > The expr can be replaced with
> > subdir=${item#$sourcetree}
> > that's afaics posix syntax ([1]), not bash.
> >
> > Spawning one mkdir for each directory can be replaced by a single mkdir
> > invocation with all the directories. On my linux workstation that gets the
> > time for the first loop down from 1005ms to 38ms, really.
>
> Even better?
>
> (cd "$sourcetree" && find . -print |grep -E '/Makefile$|/GNUmakefile$' |grep -v "$sourcetree/doc/src/sgml/images/" |xargs tar c) |
> (cd "$buildtree" && tar x)
Don't think we depend on tar for building, at the moment. But yes, it'd be
faster... Tar is certainly a smaller dependency than perl, not sure if there's
any relevant platform without it?
Greetings,
Andres Freund
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-hackers@postgresql.org
Cc: andres@anarazel.de, pryzby@telsasoft.com, andrew@dunslane.net, m.melihmutlu@gmail.com
Subject: Re: Mingw task for Cirrus CI
In-Reply-To: <20220409010241.7httalsahzg7rmyl@alap3.anarazel.de>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox