From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on starla X-Spam-Level: X-Spam-Status: No, score=-0.7 required=3.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED, SPF_HELO_PASS,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id B25411F44D for ; Sat, 20 Apr 2024 23:51:04 +0000 (UTC) Authentication-Results: dcvr.yhbt.net; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=clisp.org header.i=@clisp.org header.a=rsa-sha256 header.s=strato-dkim-0002 header.b=WtAbPMu7; dkim=fail reason="signature verification failed" header.d=clisp.org header.i=@clisp.org header.a=ed25519-sha256 header.s=strato-dkim-0003 header.b=u0FKmA4g; dkim-atps=neutral Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ryKTr-00031u-29; Sat, 20 Apr 2024 19:50:51 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ryKTp-00031W-Cj for bug-gnulib@gnu.org; Sat, 20 Apr 2024 19:50:49 -0400 Received: from mo4-p01-ob.smtp.rzone.de ([85.215.255.54]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ryKTn-0007hA-IH for bug-gnulib@gnu.org; Sat, 20 Apr 2024 19:50:49 -0400 ARC-Seal: i=1; a=rsa-sha256; t=1713657043; cv=none; d=strato.com; s=strato-dkim-0002; b=R5yU35xxQgtIfEA0+hlSDF7mjr222wIk3DrphaJ/GWcHoU5lfZ2FF81ftQ/yt0hPJs H24KvEVnp2ruvi8gPqCIvLfyObWfHnj3prlzI3GmOzMIHyx8Q9JuD7JAi86oFK06ZOvk i7smRwVg78bEAC5j/Co8vUrFQUQParnA6KXxwzvrK1Gifo55WHsI2uxOd59s+zsWTiLy Jx6Z+YzKRxMcJXwlF66roMwAfS5MSrNo8+IwuLIKCz+yBbZ/pgSrDch6PQFQnGb8/5L4 jB3iYf4cl23mfyl64uo6gWNogB/iJVrA1PiMqFCL5k+BGSD2tY5TTqXhI32YhqRN+UI0 ku7Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; t=1713657043; s=strato-dkim-0002; d=strato.com; h=References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From:Cc:Date: From:Subject:Sender; bh=B4OfzAlmIJHUfF1a4ugq6T+ffoq41jI5OzWvFZJhf6Y=; b=ABiAXVLUVUN24e2I97hSJZlhsg82nsVGN1CImSDOGq2c5bYdDH6bN545SlznL9xuaO vhtcKiz7NCav3nE/lpQoKHuUgWohhl5I+PoIfgEHrdDoRYllTEYk7yjy0u05EBihNe6g PovmkObUJ8itrsjTGdCRoygUhKLVaBCXesBSzRvqfjDZ5YDLRi4MtzcyHF5B0fKpo48u HfVUhJjqEJ2q/meS1iilYkitxeTJVxhz3oIesMB3UYQeCf89N6IDTviKx/yt8Ojs41G4 c5pP75iEzJ3AXUr+tbRRnMgRVNwfW0V3zJQGrp+uU+Leww/UUaYz/kT5uy46XCKT3b8B LMCQ== ARC-Authentication-Results: i=1; strato.com; arc=none; dkim=none X-RZG-CLASS-ID: mo01 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1713657043; s=strato-dkim-0002; d=clisp.org; h=References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From:Cc:Date: From:Subject:Sender; bh=B4OfzAlmIJHUfF1a4ugq6T+ffoq41jI5OzWvFZJhf6Y=; b=WtAbPMu70a+OhCCW7emnl07Z3zzFFU06tg/ieOsCho98bEUrNzqJOW7H0TaBmBvHOn hQfSQc38hEVTKVAdv3OQGunFaZb8cmBKOOIiGGM+Z9HWsDOxDWR+hKsfdl0FjoUpD2AP iRKTpUwYdPighsXyU2SBvMCLnMkPEbuzSBt9mdUpI7oUaot0HliUxNHQm+s2y/h8bxDf yfBZ9meTz68K+xUnGWIl+NYI3W1nFx1IfM8Z2Dhkq73PjZ2qeIrErvKYVdmIYHWuPVCy a02rfnVsosxagmIi3by+MyfeCQCOS4HmvB4VMj2YEeY6isIP0yLm6flEk0G4oB7aFf4p Qz7g== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; t=1713657043; s=strato-dkim-0003; d=clisp.org; h=References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From:Cc:Date: From:Subject:Sender; bh=B4OfzAlmIJHUfF1a4ugq6T+ffoq41jI5OzWvFZJhf6Y=; b=u0FKmA4ggRydzxSZf9xnrJWSNvEOT2dBYaJXv3kx4SyTdyWG3BGN5u4S42yepEjGK2 VNuxIJV8jRAFtKbOF8Cw== X-RZG-AUTH: ":Ln4Re0+Ic/6oZXR1YgKryK8brlshOcZlIWs+iCP5vnk6shH0WWb0LN8XZoH94zq68+3cfpPAiaPMnJmP1xDOek2uMY1V7OI6Ag==" Received: from nimes.localnet by smtp.strato.de (RZmta 50.3.2 AUTH) with ESMTPSA id N8610003KNoh7IH (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits)) (Client did not present a certificate); Sun, 21 Apr 2024 01:50:43 +0200 (CEST) From: Bruno Haible To: bug-gnulib@gnu.org Cc: Collin Funk Subject: Re: gnulib-tool.py speedup Date: Sun, 21 Apr 2024 01:50:43 +0200 Message-ID: <5635240.fmqBMdrEoA@nimes> In-Reply-To: References: <17575364.8ZXASUQcjA@nimes> <29333147.KzJWbE5nf6@nimes> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Received-SPF: none client-ip=85.215.255.54; envelope-from=bruno@clisp.org; helo=mo4-p01-ob.smtp.rzone.de X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_NONE=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: bug-gnulib@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gnulib discussion list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnulib-bounces+normalperson=yhbt.net@gnu.org Sender: bug-gnulib-bounces+normalperson=yhbt.net@gnu.org On Sonntag, 21. April 2024 01:01:01 CEST Collin Funk wrote: > Hi Bruno, > > On 4/20/24 3:50 PM, Bruno Haible wrote: > > On Linux: On Cygwin 2.9.0: > > > > in create-tests: time ./test-all.sh in create-tests: time ./test-all.sh > > sh: 1225 sec sh: 27406 sec > > py: 155 sec py: 2400 sec > > => about 8 times faster => more than 11 times faster > > What shell did you use for this test? On Linux: dash. On Cygwin: bash > Would other shells even make a difference? You just have to replace the first line of gnulib-tool.sh: #!/bin/sh -> #!/bin/bash What I measure (with "GNULIB_TOOL_IMPL=sh time ./test-create-testdir-1.sh") is: dash 22 sec bash 20 sec I think that 'dash' is generally somewhat faster than 'bash'. However, gnulib-tool uses special bash syntax for appending to a list and for the module caching; this probably makes it faster with 'bash' than with 'dash', What matters most, in the comparison shell vs. Python, IMO, is the string processing [1]. Bruno [1] https://lists.gnu.org/archive/html/bug-gnulib/2024-03/msg00160.html