From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#64735: 29.0.92; find invocations are ~15x slower because of ignores Date: Sat, 22 Jul 2023 15:00:00 +0300 Message-ID: <83r0p088cf.fsf@gnu.org> References: <87edl08d1t.fsf@localhost> <87fs5gi5xe.fsf@catern.com> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="18541"; mail-complaints-to="usenet@ciao.gmane.io" Cc: sbaugh@janestreet.com, yantar92@posteo.net, 64735@debbugs.gnu.org To: sbaugh@catern.com Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Jul 22 14:00:16 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 1qNBHS-0004eT-Ph for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 22 Jul 2023 14:00:14 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qNBHI-0003V9-Eh; Sat, 22 Jul 2023 08:00: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 1qNBHG-0003Uz-JE for bug-gnu-emacs@gnu.org; Sat, 22 Jul 2023 08:00: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 1qNBHG-00087N-9c for bug-gnu-emacs@gnu.org; Sat, 22 Jul 2023 08:00:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qNBHG-0004FR-3c for bug-gnu-emacs@gnu.org; Sat, 22 Jul 2023 08:00:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 22 Jul 2023 12:00: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.169002717316260 (code B ref 64735); Sat, 22 Jul 2023 12:00:02 +0000 Original-Received: (at 64735) by debbugs.gnu.org; 22 Jul 2023 11:59:33 +0000 Original-Received: from localhost ([127.0.0.1]:35593 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qNBGm-0004EC-NR for submit@debbugs.gnu.org; Sat, 22 Jul 2023 07:59:33 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:47920) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qNBGk-0004Dy-Uv for 64735@debbugs.gnu.org; Sat, 22 Jul 2023 07:59:31 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qNBGd-0007ka-Nu; Sat, 22 Jul 2023 07:59:25 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=Zpat+D4go7rtCXaY2yPAbzi5PQ4ZzVDUz3OKW2hExaM=; b=XN3Pvf9rKELv B4MizkQzWxRttWvfcOrhO4Nwva1mrJCFbZbpiKps0NbpXdN2YxudB4C6G56pE2oCoRAGTpdAKwaeh dNb9jdn0xOUv10Vlm8z7369Ydwe6w3J1rDBcCDZEjl/6WO75wNZS0aXAzPoF43Ydws7rGK0oAAx52 sqA3JjHx1SAomHDHMq6OI6GcrJs8K+qfB0RgkUq79hWzT+fovdT+Xqw9Dhj1ornIJVPS0rqhvIUbV Co83/y/RuMJ5wRiTJjqUzt9nU/SETmoYclWc8D3bH1jsX4pFrLX+ASz991Z6kra8DThKOB+hUhAEJ f2dO27EVKRBLgMuxwfg8Iw==; Original-Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qNBGb-0008RB-SW; Sat, 22 Jul 2023 07:59:22 -0400 In-Reply-To: <87fs5gi5xe.fsf@catern.com> (sbaugh@catern.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:265804 Archived-At: > Cc: Spencer Baugh , 64735@debbugs.gnu.org > From: sbaugh@catern.com > Date: Sat, 22 Jul 2023 10:42:06 +0000 (UTC) > > 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. How can you do anything in Emacs without allocating memory?