From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Po Lu via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#64735: 29.0.92; find invocations are ~15x slower because of ignores Date: Sat, 22 Jul 2023 14:39:59 +0800 Message-ID: <87r0p030w0.fsf@yahoo.com> References: <1fd5e3ed-e1c3-5d6e-897f-1d5d55e379fa@gutov.dev> <87wmyupvlw.fsf@localhost> <5c4d9bea-3eb9-b262-138a-4ea0cb203436@gutov.dev> <87tttypp2e.fsf@localhost> Reply-To: Po Lu Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="15004"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Dmitry Gutov , Ihor Radchenko , 64735@debbugs.gnu.org To: Spencer Baugh Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Jul 22 08:41:38 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 1qN6J7-0003lX-P7 for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 22 Jul 2023 08:41:37 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qN6Im-00064K-CQ; Sat, 22 Jul 2023 02:41:16 -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 1qN6IY-00063T-RO for bug-gnu-emacs@gnu.org; Sat, 22 Jul 2023 02:41:03 -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 1qN6IY-0001k4-J9 for bug-gnu-emacs@gnu.org; Sat, 22 Jul 2023 02:41:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qN6IY-0007RT-FS for bug-gnu-emacs@gnu.org; Sat, 22 Jul 2023 02:41:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Po Lu Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 22 Jul 2023 06:41: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.169000801728528 (code B ref 64735); Sat, 22 Jul 2023 06:41:02 +0000 Original-Received: (at 64735) by debbugs.gnu.org; 22 Jul 2023 06:40:17 +0000 Original-Received: from localhost ([127.0.0.1]:35320 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qN6Hp-0007Q4-Gh for submit@debbugs.gnu.org; Sat, 22 Jul 2023 02:40:17 -0400 Original-Received: from sonic307-56.consmr.mail.ne1.yahoo.com ([66.163.190.31]:34785) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qN6Hn-0007Pp-6X for 64735@debbugs.gnu.org; Sat, 22 Jul 2023 02:40:15 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1690008009; bh=rC5s1XRkh2ESHgHxu6vgvj12iN9HsKCICKMUPJvqZZY=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From:Subject:Reply-To; b=A8wT1PVb7mWN/4MypeZhW/Qd6OAZWGfInzX5IYfMwfowRXr0/2Kc18R/Uq1me7wTpinK0+OK6zICuIP7hp1QMMVcn1yAEHf6FuanBU4InhdOJme8jdBad5b5YL83uviMjpUBVW8oz9ysqJL6KQ52eXTEW4rjvFFneoRI/GTwurCZEljTOX5qyuEPQJTnGTUiKQzyKuV9D/IKngF/wcHjLQzJVO6x5Hg6LNh8XMWml6r64vVQPmOZdDosZbnPd5m+cbjLAH2+0YDLkJX+vV7G/8NWWS+hK0h2eCXIpbDL/O30pWeXhCwFyf2Jo6sZZ0D4TDgMS3zx+NwyB944ujtNFg== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1690008009; bh=SHOSC88P2nuZNVRnQSwAc4OzBKZLdsG68g7hGxrujdY=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=sNTJhI/ll7234FHei3fqovSEAy9DebNzl+cbXKs64f1bnnxGmm22Of1xUJ8gr/3031tc195vhPGrhIC5ncEPkvpB+diOr3rnQWXI5w6d5ZQnnYkALvSWx+FeXr6EhKQFkrqyVoNVwvnqfvlHbKkPTQmI4I+SwRmtmBH30x5iwIlDIoMgrxh0UlsT03t9paygxaVZNQz6u7ZbmrDZ7TCng2u7/IBdywEGIQdY9deNYFDbmsWKotz7ICOKcI2mpEJ7I3AUeSkcAj2fRLrG3PSTSIFU58pVw/miWKtelR/t5yCiY5KDw9a8BpDsTqbKT+QzUnKA8R4MWIKoQO3GDOGyWQ== X-YMail-OSG: Boms5wwVM1mMsj07SqS9mCaeU7oGCpRa893uSoqSPnOGzkd7BZNzXV8zmzejSmZ OjzIm.P_otasz8Qb.yT1GUEwg91_uK9CgJht4xKdT2Ji2azdgQZHksoi6B3RIKOmMtWdlC4k.Gxv Q46yICVA8pHjT0ETDlGuNQPTceV0K8nF61VUIrQA5UOk99Kh1o3fczHMUpkiq4rwz93fndoHwbti VSvqq1TbExiuLdcxDFO4YyGd4e4Py7ofrKkQOUUyjfSk2Y2uftvCfGHxeTP1QjccYsSUqiaIj2sJ ASaj7O_GyQGzL3cxQ2Hp7vbBvHxF2fe91ekWkRjIQh3JHLsSyIBkOmu.0ba.P9IWvHygKs7Mnupy gakTJwzJxbHWhIyzluRhGyXPKqWcWixKindbzaQe0Pssrbj9joEZyNtbOg._yc2aI.L1gAa7X3Mz hCZefm7IGgAmvzjBfW65.0nDiktlQxjD_K19A.3dYy6X2nbp_t5OTiC5NT5qyKLut6up6oUK.6oN fRiJt9tBWhfjQrKdUbLkAsn8lzoHMjb_RxY8GHt.0mOiuZQXrtz1QTjycUBZL2gGcuBarASR1Eja M0WD1AIfEJ1dSp9Of9iUAi9IpKMCJI2FKtvsLJhiULLw4CZD5rgt0lQuYxWZ4qfhN17e_VD6yL3n 18Tu8XI5TJRgFoRRGsyHro5Ybb5gPz7BU8pZDy2p2dwnKm._T..9igSrO7x5N9D6h3sMfgd.OrUR 9grAPTTaH1g0fBX9y2HKgarg63Orx5Pr56s0FJNymzicrRJD_mCfTFXSvfNYF.4WwOiakfGkX2XC 5MED4u5wXS8ANyycrg_cbM7hr1DAYirB0w1MK0.2Sg X-Sonic-MF: X-Sonic-ID: 5b9575fe-9afd-4efb-8bb4-8f9ce28d83d2 Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic307.consmr.mail.ne1.yahoo.com with HTTP; Sat, 22 Jul 2023 06:40:09 +0000 Original-Received: by hermes--production-sg3-9dc5f54fc-9mrgp (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID a55ae7f91a86cab175db34b82a92cc2e; Sat, 22 Jul 2023 06:40:04 +0000 (UTC) In-Reply-To: (Spencer Baugh's message of "Thu, 20 Jul 2023 13:08:24 -0400") X-Mailer: WebService/1.1.21647 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo 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:265778 Archived-At: 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.