Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nczV1-0000fw-TI for pgsql-hackers@arkaria.postgresql.org; Sat, 09 Apr 2022 01:02:47 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1nczV0-0002eQ-Oe for pgsql-hackers@arkaria.postgresql.org; Sat, 09 Apr 2022 01:02:46 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nczV0-0002eH-FA for pgsql-hackers@lists.postgresql.org; Sat, 09 Apr 2022 01:02:46 +0000 Received: from wout2-smtp.messagingengine.com ([64.147.123.25]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nczUy-0007pf-2O for pgsql-hackers@postgresql.org; Sat, 09 Apr 2022 01:02:45 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.west.internal (Postfix) with ESMTP id AA2013200583; Fri, 8 Apr 2022 21:02:42 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute5.internal (MEProxy); Fri, 08 Apr 2022 21:02:43 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=anarazel.de; h= cc:cc:content-type:date:date:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to; s=fm1; bh=DkYypDIkyeYf59c34k4qD5XvAk0qKeD/Fu+/UJ lMu78=; b=SHq9tE880OvcJg/p2T0uUhyUEC6LGwcVP6KABOTIWf17Vi/YW0LCWn ad9PRalQ3IC5a0hygulyg05R5ihSiEZOP6hQPTZQsFFj7Hhxh2KIErpiPeXMoHV7 gE6OtqPXDWJM2yzZlsRku6AP+ejk09r8NySosN/MgYpiKYiLsbWvCDOI50S5CReX eqjigHXMJqz2PvoTHHndrxuyALz+TfsTqZcm5xzWmhsWQqKAbDMGwMrBOjOVKuJS HB6jGQay9zfQH4GKsO4IUj7MxRmjKuXX95k6pE/qUfbDK07HYLeHvwZN+GekY8FA qGQD4UneEq4l7kAyzMkOb1mkKvO8SOmw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=DkYypDIkyeYf59c34 k4qD5XvAk0qKeD/Fu+/UJlMu78=; b=D54ZolkF23puFAQKpODYUDzvFIgIwPjVC na1/IuIr+oS4bPo7+jtFc3q6r1Zbk1lc5QhozFxlAOGEZumTXmrVumQxey3xIDRV U8Cqp78fXU4G2KuGdO6fC0XfTw0Q0dsI0/bXviyq6c9+btz8CEWi/xT2mmtHKCNx EKuS195ieGddrjEXHU8HwT6pypBdvSWxSBOQN+b8LF120i5uX2pLcHR65l8yheml XoZledplYQewaJTQammD8LPxj7ef8QFLfr07kZOBT4omB9gW4tJrK2grvAoG0ipS XtPbKSDPcqhcnoeKMm5449Kweii7Fs2O2SqVU13T4f31F9cciKZfA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvvddrudekuddgfeekucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvffukfhfgggtuggjsehttdertddttddvnecuhfhrohhmpeetnhgurhgv shcuhfhrvghunhguuceorghnughrvghssegrnhgrrhgriigvlhdruggvqeenucggtffrrg htthgvrhhnpeevhfejveehvddvgfdtueefuefhhfetkefgfedtkefhieeuudefveduffdu gfdvgeenucffohhmrghinheptghirhhruhhsqdgtihdrtghomhenucevlhhushhtvghruf hiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrnhgurhgvshesrghnrghrrgii vghlrdguvg X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 8 Apr 2022 21:02:42 -0400 (EDT) Date: Fri, 8 Apr 2022 18:02:41 -0700 From: Andres Freund To: Justin Pryzby Cc: Andrew Dunstan , Melih Mutlu , pgsql-hackers@postgresql.org Subject: Re: Mingw task for Cirrus CI Message-ID: <20220409010241.7httalsahzg7rmyl@alap3.anarazel.de> References: <20220322001559.mln5mexnhvijuntn@alap3.anarazel.de> <20220331002618.npsfms3sijof7z7n@alap3.anarazel.de> <99db8656-9722-65c4-39b7-59fc14670c66@dunslane.net> <20220407171021.h5cnwfs355zdug7v@alap3.anarazel.de> <20220409002758.GM24419@telsasoft.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220409002758.GM24419@telsasoft.com> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk 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 > > > (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