From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: sbaugh@catern.com Newsgroups: gmane.emacs.bugs Subject: bug#64735: 29.0.92; find invocations are ~15x slower because of ignores Date: Sat, 22 Jul 2023 10:42:06 +0000 (UTC) Message-ID: <87fs5gi5xe.fsf@catern.com> References: <87edl08d1t.fsf@localhost> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="15507"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) 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 Sat Jul 22 12:43:19 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 1qNA50-0003sv-4X for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 22 Jul 2023 12:43:18 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qNA4l-0004Uj-T8; Sat, 22 Jul 2023 06:43: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 1qNA4j-0004UZ-VG for bug-gnu-emacs@gnu.org; Sat, 22 Jul 2023 06:43:01 -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 1qNA4j-00008H-NL for bug-gnu-emacs@gnu.org; Sat, 22 Jul 2023 06:43:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qNA4j-00083z-Jc for bug-gnu-emacs@gnu.org; Sat, 22 Jul 2023 06:43:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: sbaugh@catern.com Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 22 Jul 2023 10:43: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.169002254930953 (code B ref 64735); Sat, 22 Jul 2023 10:43:01 +0000 Original-Received: (at 64735) by debbugs.gnu.org; 22 Jul 2023 10:42:29 +0000 Original-Received: from localhost ([127.0.0.1]:35531 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qNA49-000838-VS for submit@debbugs.gnu.org; Sat, 22 Jul 2023 06:42:29 -0400 Original-Received: from s.wrqvwxzv.outbound-mail.sendgrid.net ([149.72.154.232]:27498) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qNA3v-00082i-BF for 64735@debbugs.gnu.org; Sat, 22 Jul 2023 06:42:24 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=catern.com; h=from:subject:in-reply-to:references:mime-version:to:cc:content-type: content-transfer-encoding:cc:content-type:from:subject:to; s=s1; bh=RdHRp03vjHa+1ZfbHGooFdIIB5sGQ+tAY9sAqKbuNss=; b=teAeOAl+Bw5jkoZDMlz0ASTHWOLaY1bSkOJ36erP8BzuWP/jjauhssnapqTMo/9L2kPS 9fti2VD4exrIqLIZVoS2/9axFwCIfJ+pItr/obBuczU/UHlzHL6DTQL07QsWUvzrWdIrLE Z2wZha2O8vKGEi+LOOlKvIhfAwQshQSbfjy2Mdh81qcwJtLYB1iHcPN87iMMXTmt6kkl4X rHIZ09eAqW+5fdsBe8277uamtolaM+PxmrYVCt0hyHS5tGHWOTy38s5zFNfOYTVtTNM9Mr 7vjUBJ5EKjF0qI1r9OyIPr5UpaIe+aQtuIHE5p5HkjISkcbdu71doOzwV0YwRufw== Original-Received: by filterdrecv-66949dbc98-9d8bm with SMTP id filterdrecv-66949dbc98-9d8bm-1-64BBB27E-1 2023-07-22 10:42:06.033193656 +0000 UTC m=+6260549.422128204 Original-Received: from earth.catern.com (unknown) by geopod-ismtpd-3 (SG) with ESMTP id xquYvXL7Q9OuYzrhCwRkmA Sat, 22 Jul 2023 10:42:05.909 +0000 (UTC) X-Comment: SPF check N/A for local connections - client-ip=::1; helo=localhost; envelope-from=sbaugh@catern.com; receiver=posteo.net Original-Received: from localhost (localhost [IPv6:::1]) by earth.catern.com (Postfix) with ESMTPSA id 6A48F60166; Sat, 22 Jul 2023 06:42:05 -0400 (EDT) In-Reply-To: <87edl08d1t.fsf@localhost> (Ihor Radchenko's message of "Sat, 22 Jul 2023 10:18:22 +0000") X-SG-EID: ZgbRq7gjGrt0q/Pjvxk7wM0yQFRdOkTJAtEbkjCkHbJSRTbRpqF3T0QMtzR7x2X/ZGgD15eka72bRqGmmDcanJaKvC7AHYUCAp5gnzOkw2hqgQFhz3Q5rpmKy3fhBbuFZHXG+B8S3yuJkdllctoDdgIHhC8O59lrCy4i+l715yexau9eTYj2AIlp1P2lZDrXXZfKUS0XTrBDa2mZo2aYfw== X-Entity-ID: d/0VcHixlS0t7iB1YKCv4Q== 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:265798 Archived-At: Ihor Radchenko writes: > Spencer Baugh writes: > >> - we could use our own recursive directory-tree walking implementation >> (directory-files-recursively), if we found a nice way to pipe its output >> directly to grep etc without going through Lisp. (This could be nice >> for project-files, at least) > > May you elaborate this idea? One of the reasons directory-files-recursively is slow is because it allocates memory inside Emacs. If we piped its output directly to grep, that overhead would be removed. On reflection, though, as I've posted elsewhere in this thread: This is a bad idea and is inherently slower than find, because directory-files-recursively does not run in parallel with Emacs (and never will).