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 21:56:09 +0300 Message-ID: <615e8997-049b-0685-07db-c87dbbc0ac85@gutov.dev> References: <1fd5e3ed-e1c3-5d6e-897f-1d5d55e379fa@gutov.dev> <87wmyupvlw.fsf@localhost> <5c4d9bea-3eb9-b262-138a-4ea0cb203436@gutov.dev> <87tttypp2e.fsf@localhost> <87r0p2po29.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="2270"; 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 20:57:34 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 1qMYqD-0000DR-Dl for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 20 Jul 2023 20:57:34 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qMYpj-0004dV-KC; Thu, 20 Jul 2023 14:57:03 -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 1qMYpi-0004dG-MO for bug-gnu-emacs@gnu.org; Thu, 20 Jul 2023 14:57: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 1qMYpi-0006Tc-ER for bug-gnu-emacs@gnu.org; Thu, 20 Jul 2023 14:57:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qMYpi-0005WZ-AY for bug-gnu-emacs@gnu.org; Thu, 20 Jul 2023 14:57:02 -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 18:57: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.168987938121180 (code B ref 64735); Thu, 20 Jul 2023 18:57:02 +0000 Original-Received: (at 64735) by debbugs.gnu.org; 20 Jul 2023 18:56:21 +0000 Original-Received: from localhost ([127.0.0.1]:59899 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qMYp3-0005VY-0O for submit@debbugs.gnu.org; Thu, 20 Jul 2023 14:56:21 -0400 Original-Received: from wout1-smtp.messagingengine.com ([64.147.123.24]:36627) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qMYp0-0005V6-82 for 64735@debbugs.gnu.org; Thu, 20 Jul 2023 14:56:18 -0400 Original-Received: from compute6.internal (compute6.nyi.internal [10.202.2.47]) by mailout.west.internal (Postfix) with ESMTP id 7A8A33200BFF; Thu, 20 Jul 2023 14:56:12 -0400 (EDT) Original-Received: from mailfrontend1 ([10.202.2.162]) by compute6.internal (MEProxy); Thu, 20 Jul 2023 14:56:12 -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= 1689879372; x=1689965772; bh=sUqPPrSfAAds49KCIzaIu4SWGxKzBxO6mq7 kYqVW7HM=; b=M+NQ7Ot8YD1xDWcoiSZRB/mLdj2xA3fTx9j78kUiAyT+cc/9V7+ rvmj4dmiQKCFFb0aNI5deUkf0/oCI83YsjGOawUpoElPTECbzPiJx+MEi01O4k5K pamOia56mkmt9X2RWe1WUEu4fecXKt24HkywiWAHZFij6YhLicaNICG+JfYSgIhh ATVkozciPlbDw+sLL+sM8H56DYIkGU+xB1kCyexGv8zK2C7B7WCKzhTZaDA31rhp vtr9FV/aVPGfvQvGTrYDhaH9gM6LM0H3ucMgJ7n8pm1NZ5yPG3tN/a2jmEKBDCUW ITPNUCQ+eDuQKVylRCA5ZRqOsB9buL/WPLQ== 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= 1689879372; x=1689965772; bh=sUqPPrSfAAds49KCIzaIu4SWGxKzBxO6mq7 kYqVW7HM=; b=WJdQfUeVHFLbrqKqos9mIkaP68l1gRsH/9OKWLcGOfzalOhejIP Ts9hXwi+6t8phq2Bz3MgTs2W0BtMufBchH/5gf8rFPoFAMFXvUXP34jnp7hfB829 jU3QH73I9Y8blvdHupCxZFjGPZypK3EbyUyznRvTI3RQq5oKeXhEvgkOle4yKvet fVjR3E2hb/a2/ur6ZC3Edcf00c7wMWr9MqwjrrbYeB8v0rknMetl/MJW/SSxB7Ev 6z37QeqyVYT/2VYPtfyRRX6JmDbEOq3zceSUlARd6QYjuqb+UVicYCTdCNVP4qU2 As7LrzNYcHJAnFwZthadJuAiOaDSSrzpqDg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedviedrhedtgddufedtucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepkfffgggfuffvvehfhfgjtgfgsehtjeertddtfeejnecuhfhrohhmpeffmhhi thhrhicuifhuthhovhcuoegumhhithhrhiesghhuthhovhdruggvvheqnecuggftrfgrth htvghrnhepiefgteevheevveffheeltdeukeeiieekueefgedugfefgefhudelgfefveel vdevnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepug hmihhtrhihsehguhhtohhvrdguvghv X-ME-Proxy: Feedback-ID: i0e71465a:Fastmail Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 20 Jul 2023 14:56:10 -0400 (EDT) Content-Language: en-US In-Reply-To: <87r0p2po29.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:265633 Archived-At: On 20/07/2023 19:03, Ihor Radchenko wrote: > Dmitry Gutov writes: > >>> And things are not as horrible as 15x slowdown in find. >> We haven't compared to the "optimized regexps" solution in find, though. > Fair point. > >> Still like 2.5x slower, then? That's significant. > It is, but it is workable if we try to optimize Emacs' > `directory-files'/`file-name-all-completions' internals. > >>> I am pretty sure that Emacs's native file routines can be optimized to >>> the level of find. >> I don't know, the GNU tools are often ridiculously optimized. At least >> certain file paths. Sorry, I meant "code paths" here. > You are likely right. > Then, what about applying regexps manually, on the full file list > returned by find? It will almost certainly be slower in cases where several (few) ignore entries help drop whole big directories from traversal.