From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS3215 2.6.0.0/16 X-Spam-Status: No, score=-3.8 required=3.0 tests=AWL,BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from out1.vger.email (out1.vger.email [IPv6:2620:137:e000::1:20]) by dcvr.yhbt.net (Postfix) with ESMTP id 5CB331F4D7 for ; Wed, 18 May 2022 18:38:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241534AbiERShF convert rfc822-to-8bit (ORCPT ); Wed, 18 May 2022 14:37:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50058 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241296AbiERShE (ORCPT ); Wed, 18 May 2022 14:37:04 -0400 Received: from elephants.elehost.com (elephants.elehost.com [216.66.27.132]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6C6671DB586 for ; Wed, 18 May 2022 11:37:03 -0700 (PDT) Received: from Mazikeen (cpe00fc8d49d843-cm00fc8d49d840.cpe.net.cable.rogers.com [174.119.96.21] (may be forged)) (authenticated bits=0) by elephants.elehost.com (8.16.1/8.16.1) with ESMTPSA id 24IIau9j059546 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Wed, 18 May 2022 14:36:56 -0400 (EDT) (envelope-from rsbecker@nexbridge.com) Reply-To: From: To: "'Junio C Hamano'" Cc: "'Plato Kiorpelidis'" , , , References: <20220509175159.2948802-1-kioplato@gmail.com> <20220509175159.2948802-14-kioplato@gmail.com> <88421b18-0fa0-236a-b74b-c5ee3ef53279@gmail.com> <20220518173947.4qabalu6mjmzumen@compass> <016201d86adf$5a4e1eb0$0eea5c10$@nexbridge.com> In-Reply-To: Subject: RE: [PATCH v2 13/15] dir-iterator: option to iterate dirs in pre-order Date: Wed, 18 May 2022 14:36:50 -0400 Organization: Nexbridge Inc. Message-ID: <016b01d86ae6$40b2ed80$c218c880$@nexbridge.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8BIT X-Mailer: Microsoft Outlook 16.0 Content-Language: en-ca Thread-Index: AQEtoa9KICtof6G0d82GO44tkWkaaAFac/2+AdFePPMCFShFEwG1hhefASaFcyeuOaChAA== Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org On May 18, 2022 2:09 PM Junio C Hamano wrote: > writes: > >> Could this be a fallback position where nftw() is not available? I am >> not how broadly nftw() is supported but it appears to do what you are >> looking for. > >Yeah, nftw() sounds like a better approach than what we have been doing for the >past decade by writing our own iterator. Not to mention being blindingly faster and lower resource usage on some "exotic" platforms 😊