From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.bugs Subject: bug#64735: 29.0.92; find invocations are ~15x slower because of ignores Date: Thu, 20 Jul 2023 18:19:41 +0300 Message-ID: <5c4d9bea-3eb9-b262-138a-4ea0cb203436@gutov.dev> References: <1fd5e3ed-e1c3-5d6e-897f-1d5d55e379fa@gutov.dev> <87wmyupvlw.fsf@localhost> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="9700"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 Cc: Spencer Baugh , 64735@debbugs.gnu.org To: Ihor Radchenko Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Jul 20 17:20:22 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 1qMVS1-0002Je-Vt for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 20 Jul 2023 17:20:22 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qMVRl-0008HS-6Q; Thu, 20 Jul 2023 11:20:05 -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 1qMVRi-0008HC-BF for bug-gnu-emacs@gnu.org; Thu, 20 Jul 2023 11:20: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 1qMVRi-0000dI-2S for bug-gnu-emacs@gnu.org; Thu, 20 Jul 2023 11:20:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qMVRh-00056H-J8 for bug-gnu-emacs@gnu.org; Thu, 20 Jul 2023 11:20:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Dmitry Gutov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 20 Jul 2023 15:20:01 +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.168986639319587 (code B ref 64735); Thu, 20 Jul 2023 15:20:01 +0000 Original-Received: (at 64735) by debbugs.gnu.org; 20 Jul 2023 15:19:53 +0000 Original-Received: from localhost ([127.0.0.1]:59463 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qMVRZ-00055q-9s for submit@debbugs.gnu.org; Thu, 20 Jul 2023 11:19:53 -0400 Original-Received: from out1-smtp.messagingengine.com ([66.111.4.25]:49533) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qMVRW-00055b-Cb for 64735@debbugs.gnu.org; Thu, 20 Jul 2023 11:19:51 -0400 Original-Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id C21C55C01A8; Thu, 20 Jul 2023 11:19:44 -0400 (EDT) Original-Received: from mailfrontend1 ([10.202.2.162]) by compute5.internal (MEProxy); Thu, 20 Jul 2023 11:19:44 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gutov.dev; h=cc :cc:content-transfer-encoding:content-type: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; t= 1689866384; x=1689952784; bh=kBQ8rrezP2nvOULyLtlijS6nHHWfTOxYnG5 cb4dMJb8=; b=MWPD22kYmau0paO2O9wEwuBqZgC06njXTyZFq4GQ52efIwPQ0fY cYnpMnpjztmUbpc8NFhWKG0XC8/WXMeE7vRJoCGd0ufY82EgAPoK7dggMU5CSY52 RXDV4lRaImipI2RVu0a/URwbS3gizVyKQyfoH3kavbYordGOYVm6RSlHzVt2hace MGCWezf6mymqV2TTPadHUa6NKSUR9rRxRJ70mRstTOAt/tFWUAf47POyQLCu2vhs lZLahPnq7RWim0HG2I8F4Ohp03cxp76CDZRErrnAObQGg29X3QwvGU4V/U23SptK TxZdOctFcrfng+kIxvjSXnIawuMTK2JhAXg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :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; t= 1689866384; x=1689952784; bh=kBQ8rrezP2nvOULyLtlijS6nHHWfTOxYnG5 cb4dMJb8=; b=Hxfxu480T/y+kzV5o3kVfWzrkXsUY8u1Smds3M9HGsi82BvWFj9 gj2v3uLRH7Je64iq7S51xyB/GSHuA5TcfOFCpe9BEgNUzYfTvcL9R14ow55LODvn j4GrTopwS1Oj7KoivipbdW/j3JI7X3HWWp+qZCFNMdzybs/a4dUaB7ibff+cu33E m+9PA4yKwtw8dJ2K3UOPp/1mJHB43qjSVzH5d016qFkcsy9DhxavE4tce7hP58Q1 kjwTZL2SxvZ51qg/1Vj/IxFbTPRG5W7R/lJC5o1GYQ/ET3MlolDD2VdT7vGSKs6g Nz4433pFlIYZuBshiLrRKaUNQbUGw+a4HJw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedviedrhedtgdekiecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefkffggfgfuvfevfhfhjggtgfesthejredttdefjeenucfhrhhomhepffhmihht rhihucfiuhhtohhvuceoughmihhtrhihsehguhhtohhvrdguvghvqeenucggtffrrghtth gvrhhnpeehleeflefhheeujeduteejveeggeejjefhleeljeettdfhjedthfejgfeivdeu leenucffohhmrghinhephihhvghtihhlrdhorhhgnecuvehluhhsthgvrhfuihiivgeptd enucfrrghrrghmpehmrghilhhfrhhomhepughmihhtrhihsehguhhtohhvrdguvghv X-ME-Proxy: Feedback-ID: i0e71465a:Fastmail Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 20 Jul 2023 11:19:43 -0400 (EDT) Content-Language: en-US In-Reply-To: <87wmyupvlw.fsf@localhost> 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:265604 Archived-At: On 20/07/2023 16:20, Ihor Radchenko wrote: > Dmitry Gutov writes: > >> ... Last I checked, Lisp-native file >> listing was simply slower than 'find'. > > Could it be changed? > In my tests, I was able to improve performance of the built-in > `directory-files-recursively' simply by disabling > `file-name-handler-alist' around its call. Then it won't work with Tramp, right? I think it's pretty nifty that project-find-regexp and dired-do-find-regexp work over Tramp. > See https://yhetil.org/emacs-devel/87cz0p2xlc.fsf@localhost/ > (the thread also continues off-list, and it looks like there is a lot of > room for improvement in this area) Does it get close enough to the performance of 'find' this way? Also note that processing all matches in Lisp, with many ignores entries, will incur the proportional overhead in Lisp. Which might be relatively slow as well.