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 18:29:34 +0300 Message-ID: <83351g7yn5.fsf@gnu.org> References: <87cz0lmoxy.fsf@localhost> <83v8edzb31.fsf@gnu.org> <87r0p1cta3.fsf@gmx.de> <87pm4ll7ox.fsf@localhost> <87a5vpcmc7.fsf@gmx.de> <878rb9l1f5.fsf@localhost> <87zg3pb6yt.fsf@gmx.de> <83zg3p9s39.fsf@gnu.org> <878rb944wi.fsf@localhost> <83tttx9q4v.fsf@gnu.org> <87pm4lb4fr.fsf@gmx.de> <83pm4l9n0o.fsf@gnu.org> <87jzutb14l.fsf@gmx.de> <83mszp9kl2.fsf@gnu.org> <83h6pwa52z.fsf@gnu.org> <87ilaci637.fsf@catern.com> <83sf9g88eh.fsf@gnu.org> <87pm4krq2m.fsf@localhost> <838rb881ak.fsf@gnu.org> <87mszornlq.fsf@localhost> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="21696"; mail-complaints-to="usenet@ciao.gmane.io" Cc: sbaugh@janestreet.com, rms@gnu.org, sbaugh@catern.com, dmitry@gutov.dev, michael.albinus@gmx.de, 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 17:30:25 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 1qNEYq-0005TY-Bx for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 22 Jul 2023 17:30:24 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qNEYV-0006Cr-SR; Sat, 22 Jul 2023 11:30: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 1qNEYU-0006Cb-TA for bug-gnu-emacs@gnu.org; Sat, 22 Jul 2023 11:30: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 1qNEYU-0003C1-KE for bug-gnu-emacs@gnu.org; Sat, 22 Jul 2023 11:30:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qNEYU-0001r5-59 for bug-gnu-emacs@gnu.org; Sat, 22 Jul 2023 11:30: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 15:30: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.16900397527047 (code B ref 64735); Sat, 22 Jul 2023 15:30:02 +0000 Original-Received: (at 64735) by debbugs.gnu.org; 22 Jul 2023 15:29:12 +0000 Original-Received: from localhost ([127.0.0.1]:37480 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qNEXf-0001pb-LU for submit@debbugs.gnu.org; Sat, 22 Jul 2023 11:29:12 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:45576) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qNEXd-0001pD-CO for 64735@debbugs.gnu.org; Sat, 22 Jul 2023 11:29:10 -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 1qNEXW-000332-O7; Sat, 22 Jul 2023 11:29:02 -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=Rggkwh1/pJ8WUMA6W5kQZr/BtER1xtpzAdD4yE/9Ne8=; b=o6JdU9Cd906v X10wRem8hgXnQWEPK2uT89F7kLlH7ts+M11+Yc9Sb9fkOnGEWz74ZLW7nFIRAkxHtBzk6J+mmZPUa Ry8+/bG7mw9r7jRKb+lQl3oPx3W57Cgt0pWafaMf84sL9TcdYUf5LLcwXCWI/WKaO6M0SejRYvbdI 5Fd7ElUp8U6uxpv0ZEyytJHWKmIhq/dXd1ciOiMNjNCWoCtKqg8pW7w3vwclCT2HHGlf0aETP4hNF L/8LefC0kSCS5rnjdSq/JVfhxOsdAjKSdpfWhdWlZR4agy1ra67wFX/zWiLTLmkL8orWUJtgIYhu1 h84xJRNxIJ15sldsfQiRng==; 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 1qNEXQ-0002FP-OC; Sat, 22 Jul 2023 11:28:57 -0400 In-Reply-To: <87mszornlq.fsf@localhost> (message from Ihor Radchenko on Sat, 22 Jul 2023 15:07:45 +0000) 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:265830 Archived-At: > From: Ihor Radchenko > Cc: sbaugh@catern.com, sbaugh@janestreet.com, dmitry@gutov.dev, > michael.albinus@gmx.de, rms@gnu.org, 64735@debbugs.gnu.org > Date: Sat, 22 Jul 2023 15:07:45 +0000 > > Eli Zaretskii writes: > > >> > So I think a primitive that traverses the tree and produces file names > >> > with or without attributes, and can call some callback if needed, > >> > still has its place. > >> > >> Do you mean asynchronous primitive? > > > > No, a synchronous one. > > Then how will the callback be different from > (mapc #'my-function (directory-files-recursively ...)) > ? It depends on the application. Applications that want to get all the data and only after that process it will not use the callback. But I can certainly imagine an application that inserts the file names, or some of their transforms, into a buffer, and from time to time triggers redisplay to show the partial results. Or an application could write the file names to some disk file or external consumer, or send them to a network process.