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: Sun, 23 Jul 2023 00:01:28 +0300 Message-ID: References: <1fd5e3ed-e1c3-5d6e-897f-1d5d55e379fa@gutov.dev> <87wmyupvlw.fsf@localhost> <5c4d9bea-3eb9-b262-138a-4ea0cb203436@gutov.dev> <87tttypp2e.fsf@localhost> <87r0p030w0.fsf@yahoo.com> 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="25225"; 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: Ihor Radchenko , 64735@debbugs.gnu.org To: Po Lu , Spencer Baugh Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Jul 22 23:02:20 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 1qNJk2-0006Jd-NZ for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 22 Jul 2023 23:02:19 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qNJjo-0003rz-Bz; Sat, 22 Jul 2023 17:02: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 1qNJjm-0003rq-Im for bug-gnu-emacs@gnu.org; Sat, 22 Jul 2023 17:02: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 1qNJjm-0003oC-8u for bug-gnu-emacs@gnu.org; Sat, 22 Jul 2023 17:02:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qNJjm-0002Bj-3f for bug-gnu-emacs@gnu.org; Sat, 22 Jul 2023 17:02: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: Sat, 22 Jul 2023 21:02: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.16900597018381 (code B ref 64735); Sat, 22 Jul 2023 21:02:02 +0000 Original-Received: (at 64735) by debbugs.gnu.org; 22 Jul 2023 21:01:41 +0000 Original-Received: from localhost ([127.0.0.1]:37628 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qNJjQ-0002B7-Mf for submit@debbugs.gnu.org; Sat, 22 Jul 2023 17:01:40 -0400 Original-Received: from out2-smtp.messagingengine.com ([66.111.4.26]:48027) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qNJjO-0002Ao-P7 for 64735@debbugs.gnu.org; Sat, 22 Jul 2023 17:01:39 -0400 Original-Received: from compute6.internal (compute6.nyi.internal [10.202.2.47]) by mailout.nyi.internal (Postfix) with ESMTP id 5E84A5C008C; Sat, 22 Jul 2023 17:01:32 -0400 (EDT) Original-Received: from mailfrontend1 ([10.202.2.162]) by compute6.internal (MEProxy); Sat, 22 Jul 2023 17:01:32 -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=fm2; t= 1690059692; x=1690146092; bh=3+viGp4phQ1xFQgQJEcz49ii6AEfod4tzmj vuJyEo0I=; b=oDCM9iwQW6iyHKoHjVffh7S+dzIV4f9C5lEx+rp9+IAe9kj6eAY p5CC2KIKQ5LYy5j1R7CDjkOyMcI9gNN6HwrBEmRyxkzV1TNYI7vzJ1skdrzjBUyH dGxUnX80au/f3CMmWiS7C2lHtNpmF4ISzF8WDf5O4GowKd0NhILv/iYESKivYbUL zOJCIyKagv93AlGT0aVXzx+isoHt/0GtvICntFbXc0vDifQa5cTcNSuxqRE/4XC3 Rh2c1vxXduxzTiRDQbGB7b0eiwQTUWn/0Y7kxfgYsjplX5OuTO0iLlbTgWu3hxeh 0Tv82/chjst3SIl7WZWZ+dksyeEXLTcJpUA== 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= 1690059692; x=1690146092; bh=3+viGp4phQ1xFQgQJEcz49ii6AEfod4tzmj vuJyEo0I=; b=gsi3S9Q5wzyqNqjogSnZaehus2X4xkxgAI2Ik8inn17+76veW1K jnBG/PYJWvWNkcJIYfkqXeyvq0j8fzYg6199nAcmm7Onlyh6z4b4589cbdz7ejSk 18tGW8OfzVY3bF6CxGIKMn5Crpn3DnKWNrtJm5BazqKCh5FD2AN13DYQ+tx9cJkK EoTrDHqQTMqOHRGpDPBiJn4UT6cCnnGfaRAlS7R7Cm2Yc3daHOJQZMEzP4MVEKHs 8ZBvq/i/syR8bA4Pw2Nnjo8RtisYB3mJT9pTEQzJxwQOO3ZulyPRMemSSksNDZ+X nCONtUW7v1D/X7CMtrO53ULv2SrNyZhnr7A== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedviedrheeggdduheegucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepkfffgggfuffvvehfhfgjtgfgsehtjeertddtfeejnecuhfhrohhmpeffmhhi thhrhicuifhuthhovhcuoegumhhithhrhiesghhuthhovhdruggvvheqnecuggftrfgrth htvghrnhepiefgteevheevveffheeltdeukeeiieekueefgedugfefgefhudelgfefveel vdevnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepug hmihhtrhihsehguhhtohhvrdguvghv X-ME-Proxy: Feedback-ID: i0e71465a:Fastmail Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sat, 22 Jul 2023 17:01:30 -0400 (EDT) Content-Language: en-US In-Reply-To: <87r0p030w0.fsf@yahoo.com> 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:265844 Archived-At: On 22/07/2023 09:39, Po Lu wrote: > Spencer Baugh writes: > >> Not to derail too much, but find as a subprocess has one substantial >> advantage over find in Lisp: It can run in parallel with Emacs, so that >> we actually use multiple CPU cores. >> >> Between that, and the remote support part, I personally much prefer find >> to be a subprocess rather than in Lisp. I don't think optimizing >> directory-files-recursively is a great solution. >> >> (Really it's entirely plausible that Emacs could be improved by >> *removing* directory-files-recursively, in favor of invoking find as a >> subprocess: faster, parallelized execution, and better remote support.) > > find is only present in the default installations of Unix-like systems, > so it doesn't work without additional configuration on MS-Windows or > MS-DOS. project.el and rgrep fail to work on USG Unix because they both > use `-path'. > > Programs that use find should fall back to directory-file-recursively > when any of the situations above are detected. Perhaps if someone implements support for IGNORE entries (wildcards) in that function, it would be easy enough to do that fallback.