From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Ihor Radchenko Newsgroups: gmane.emacs.bugs Subject: bug#64735: 29.0.92; find invocations are ~15x slower because of ignores Date: Sun, 23 Jul 2023 07:48:45 +0000 Message-ID: <878rb7rrtu.fsf@localhost> References: <83v8edzb31.fsf@gnu.org> <87r0p1cta3.fsf@gmx.de> <87pm4ll7ox.fsf@localhost> <87a5vpcmc7.fsf@gmx.de> <878rb9l1f5.fsf@localhost> <87zg3pb6yt.fsf@gmx.de> <83zg3p9s39.fsf@gnu.org> <878rb944wi.fsf@localhost> <83tttx9q4v.fsf@gnu.org> <87pm4lb4fr.fsf@gmx.de> <83pm4l9n0o.fsf@gnu.org> <87jzutb14l.fsf@gmx.de> <83mszp9kl2.fsf@gnu.org> <83h6pwa52z.fsf@gnu.org> <87ilaci637.fsf@catern.com> <83sf9g88eh.fsf@gnu.org> <87cz0jj25g.fsf@catern.com> <83wmyr7sbq.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="15245"; mail-complaints-to="usenet@ciao.gmane.io" Cc: rms@gnu.org, sbaugh@catern.com, dmitry@gutov.dev, michael.albinus@gmx.de, Eli Zaretskii , 64735@debbugs.gnu.org To: Spencer Baugh Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Jul 23 09:49:18 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1qNTqA-0003ix-8G for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 23 Jul 2023 09:49:18 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qNTpw-00016y-KT; Sun, 23 Jul 2023 03:49:04 -0400 Original-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 1qNTpu-00016b-L9 for bug-gnu-emacs@gnu.org; Sun, 23 Jul 2023 03:49:02 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qNTpu-0004uq-DG for bug-gnu-emacs@gnu.org; Sun, 23 Jul 2023 03:49:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qNTpu-0002Ep-9h for bug-gnu-emacs@gnu.org; Sun, 23 Jul 2023 03:49:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Ihor Radchenko Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 23 Jul 2023 07:49:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 64735 X-GNU-PR-Package: emacs Original-Received: via spool by 64735-submit@debbugs.gnu.org id=B64735.16900985228577 (code B ref 64735); Sun, 23 Jul 2023 07:49:02 +0000 Original-Received: (at 64735) by debbugs.gnu.org; 23 Jul 2023 07:48:42 +0000 Original-Received: from localhost ([127.0.0.1]:37887 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qNTpa-0002EH-6M for submit@debbugs.gnu.org; Sun, 23 Jul 2023 03:48:42 -0400 Original-Received: from mout01.posteo.de ([185.67.36.65]:35445) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qNTpX-0002E2-7D for 64735@debbugs.gnu.org; Sun, 23 Jul 2023 03:48:40 -0400 Original-Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 664BC240029 for <64735@debbugs.gnu.org>; Sun, 23 Jul 2023 09:48:33 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1690098513; bh=kwC49HbA+CFEF5i/2//Ly2M2KXKP7RE5AvzY+NmpUgE=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:From; b=VkuHlz/RW/EkqQCWeTtkP0EomoQBCItB1xEoSL/eb/vR3iQBkd+EXop5igkMJuta+ H5EREpkNAL474oBWlBALzx9YAAHBdOREf7R6vZMbrabkqJ5iP2sJnchWafaPd/YJFj msEtL4L11pT5bV5g756wnfBF24T0A8hJx2IGakqBFqqkIYxmY2ZRQV1YnwIx2trR6+ p8I3B0QwqYrxBqHMG4LhhTL/1jmLKGou1fnZbZPBGnJn2YuyY8IEkbONfapi8RoBk5 DYxZiVG0hXaYRUaYZ23eQsgVZGU7b38tU2HnpskkkJYdsqsUAonwrjMVU9M++Cn0V7 nTPd03EApYDuQ== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4R7wQS0lLCz6twG; Sun, 23 Jul 2023 09:48:31 +0200 (CEST) In-Reply-To: X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:265868 Archived-At: Spencer Baugh writes: > Can you try this further change on your Windows (and GNU/Linux) box? I > just tested on a different box and my original change gets: On GNU/Linux, with slight modifications (defun my-bench (count path regexp) (setq path (expand-file-name path)) ;; (let ((old (directory-files-recursively path regexp)) ;; (new (find-directory-files-recursively path regexp))) ;; (dolist (path old) ;; (should (member path new))) ;; (dolist (path new) ;; (should (member path old)))) (list (cons "built-in" (benchmark count (list 'directory-files-recursively path regexp))) (cons "built-in no handlers" (let (file-name-handler-alist) (benchmark count (list 'directory-files-recursively path regexp)))) (cons "with-find" (benchmark count (list 'find-directory-files-recursively path regexp))))) (my-bench 10 "/usr/src/linux/" "") (("built-in" . "Elapsed time: 7.134589s (3.609741s in 10 GCs)") ("built-in no handlers" . "Elapsed time: 6.041666s (3.856730s in 11 GCs)") ("with-find" . "Elapsed time: 6.300330s (4.248508s in 12 GCs)")) -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at