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=-1.0 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, 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 1C7D81F44D for ; Sun, 21 Apr 2024 00:53:54 +0000 (UTC) Authentication-Results: dcvr.yhbt.net; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20230601 header.b=PsdxiSKB; dkim-atps=neutral Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ryLSQ-0002w8-Q7; Sat, 20 Apr 2024 20:53:26 -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 1ryLSP-0002vf-69 for bug-gnulib@gnu.org; Sat, 20 Apr 2024 20:53:25 -0400 Received: from mail-pl1-x629.google.com ([2607:f8b0:4864:20::629]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ryLSM-0000Kt-IR for bug-gnulib@gnu.org; Sat, 20 Apr 2024 20:53:24 -0400 Received: by mail-pl1-x629.google.com with SMTP id d9443c01a7336-1e2bbc2048eso27786245ad.3 for ; Sat, 20 Apr 2024 17:53:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1713660800; x=1714265600; darn=gnu.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:to:subject:user-agent:mime-version:date:message-id:from :to:cc:subject:date:message-id:reply-to; bh=+M2H3WjaMWuSju79pjllFQoqJYMnJdfblqPXmH910ZM=; b=PsdxiSKBVf9Gqr7XAX7mFreEjsXtfE6z5SDrCEM3J4CxrIVk5AG6D2zXzAPfBbCcLe do12WCruBzLkKVLQqEHV47xKJI85nCC9KC09tyXk36nO8QEblV/XvdvQLEdSbVHnYA9U 54N/p5ZKfjFdUTxo3EZA5uRixFkyMviw8o5F7avKAFARPGX61v/2/GCZunTbyWFUVBI8 vauW5qOP/tLIRFC6s/pdNsfCL6887ud8tTrlK4XPYllrTswIPTYeTJS0UO51UZ6kinaO 9GKVQKUk77Ne/iE34+BIODpckpCQaeDg5F9YrflDZwt1+S8QT863wCwz0oNBvGEZLSzW xekg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713660800; x=1714265600; h=content-transfer-encoding:in-reply-to:from:content-language :references:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=+M2H3WjaMWuSju79pjllFQoqJYMnJdfblqPXmH910ZM=; b=Z1GVoUgMdqFodhquizeWcGXdg+wvFLFKaF/Mks4GMMLU9CCPYbUTkdrCpRqPHPtN5+ HMlrrzw8Z3cmH/lJIE+gCa0D/p7LDjsRizU6obAP2ki1TdKw83TPaBFrbmNvsf6/kdVK mVlvd++qQoElWXdcdgz6IsDx4JtT84Q/wreEfH/CboXMXlFaI80uxSTLQtXXQkJJ2A45 w9bvYfj08ZU7liFEczVyhHudQ0PbK8k0s9TpfeurbbjZ4qTZcTxx/9SEJmEG/FfbIAE8 UiI+bKIj6mrRsSWdsBPEXSjpo1avLG80y5OP6ejhgEze69s5H1junAwQeRm3qxZchHfp oaWw== X-Forwarded-Encrypted: i=1; AJvYcCUHXqV1f2YrxCt8WTh7lG7pnyVZiok24gRN9PeyJVBkGDa3uLcTHbgzUAJNzru7nJ9dGkMhJZGFoEUdGUTWWw8leDY= X-Gm-Message-State: AOJu0Yy/jP3ZI6du6wGQ0qUeqtY6Bsz333sLyKGSkYcioaK2WNQpIiv4 iNGBdJw7yhB7fc0I7t3YiIiJ4LJAlCq+NkmhttennoElxkeFXWi9 X-Google-Smtp-Source: AGHT+IGgY6kXA+Tj8qwZSW896Q+aRO8MD3BwcKAgBLI/GYIU35EL8iN2108HCdU9XFVCzRwDGni/CA== X-Received: by 2002:a17:902:cec6:b0:1e4:145a:ee19 with SMTP id d6-20020a170902cec600b001e4145aee19mr8703870plg.50.1713660800222; Sat, 20 Apr 2024 17:53:20 -0700 (PDT) Received: from [192.168.1.5] (c-73-189-213-139.hsd1.ca.comcast.net. [73.189.213.139]) by smtp.gmail.com with ESMTPSA id h15-20020a170902680f00b001e89e7b2b74sm4842013plk.235.2024.04.20.17.53.17 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 20 Apr 2024 17:53:18 -0700 (PDT) Message-ID: <013a2b2b-9225-411b-a2d2-c55fd2476cd8@gmail.com> Date: Sat, 20 Apr 2024 17:53:16 -0700 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: gnulib-tool.py speedup To: Bruno Haible , bug-gnulib@gnu.org References: <17575364.8ZXASUQcjA@nimes> <29333147.KzJWbE5nf6@nimes> <5635240.fmqBMdrEoA@nimes> Content-Language: en-US From: Collin Funk In-Reply-To: <5635240.fmqBMdrEoA@nimes> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Received-SPF: pass client-ip=2607:f8b0:4864:20::629; envelope-from=collin.funk1@gmail.com; helo=mail-pl1-x629.google.com X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 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, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-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 4/20/24 4:50 PM, Bruno Haible wrote: > What I measure (with "GNULIB_TOOL_IMPL=sh time ./test-create-testdir-1.sh") is: > dash 22 sec > bash 20 sec dash 31 sec bash 28 sec Similar here. Looks like my desktop is just older than I remembered originally. > 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', Ah, I see. I remember seeing the associative arrays for module caching. I haven't spent much time using shells outside of bash so I don't know how common support for those extensions are. > What matters most, in the comparison shell vs. Python, IMO, is the string > processing [1]. Yes, I remember reading that email. Thank you for the detailed explanation. I guess that would also explain the Cygwin speed too? Since as far as I know Windows doesn't have fork() and deals with creating processes differently. I assume the Cygwin implementation is limited by that. Collin