From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Ihor Radchenko Newsgroups: gmane.emacs.bugs Subject: bug#64735: 29.0.92; find invocations are ~15x slower because of ignores Date: Sun, 23 Jul 2023 12:57:53 +0000 Message-ID: <87sf9en5ta.fsf@localhost> References: <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> <83351g7yn5.fsf@gnu.org> <875y6brrnk.fsf@localhost> <83fs5f6opg.fsf@gnu.org> <87351frqr7.fsf@localhost> <831qgzuh5n.fsf@gnu.org> <87tttvq8df.fsf@localhost> <83y1j7t19d.fsf@gnu.org> <87r0ozq7ze.fsf@localhost> <83v8ebszcy.fsf@gnu.org> <87v8ean99h.fsf@localhost> <83o7k2u70z.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="32068"; 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: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Jul 23 14:58:15 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 1qNYf7-00087j-CJ for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 23 Jul 2023 14:58:13 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qNYex-0001pd-Rk; Sun, 23 Jul 2023 08:58: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 1qNYew-0001pT-Au for bug-gnu-emacs@gnu.org; Sun, 23 Jul 2023 08:58: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 1qNYew-0007dY-2U for bug-gnu-emacs@gnu.org; Sun, 23 Jul 2023 08:58:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qNYev-0002NP-TK for bug-gnu-emacs@gnu.org; Sun, 23 Jul 2023 08:58:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Ihor Radchenko Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 23 Jul 2023 12:58: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.16901170749121 (code B ref 64735); Sun, 23 Jul 2023 12:58:01 +0000 Original-Received: (at 64735) by debbugs.gnu.org; 23 Jul 2023 12:57:54 +0000 Original-Received: from localhost ([127.0.0.1]:39001 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qNYeo-0002N3-6F for submit@debbugs.gnu.org; Sun, 23 Jul 2023 08:57:54 -0400 Original-Received: from mout01.posteo.de ([185.67.36.65]:44825) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qNYel-0002Mq-MB for 64735@debbugs.gnu.org; Sun, 23 Jul 2023 08:57:53 -0400 Original-Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 21E1B240029 for <64735@debbugs.gnu.org>; Sun, 23 Jul 2023 14:57:45 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1690117066; bh=cBj0+v06C819vrM2g7+8Pj3Zjd6RLU8eX2iUpx/YHAA=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:From; b=YfRvBdoaM4wk+9AnAjptjqJ/nSI5XZX2m39GT8uhnbTLkTQuEaBmAVfnmA+Le5yDO /pdYiJ9RmNR/xtag+3w9/Bvj3uds2pXsslwQtSO59zf1A5Vd241WVLtR0niBiwBZI4 QAU/3HpoHS8wAiN2XiqysyAEGaATYTOxRy5jJMzKmGJKXp30aWWaaJ11LmJUCZIz52 h1G1GJzf0T3eOQXAUNV9np6FXuCzUfODGyn24ZwIbUPf2bp8C1vPYoGIlu8ySnKgcY VTSBdpYo3vDrq0bcNBFG18vQ4/8T6o3aMpk1JypRPv/gQituQ0wGEloIbmfjmbGX1d S5reKcwuJkNBg== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4R83HD2psgz6v2X; Sun, 23 Jul 2023 14:57:43 +0200 (CEST) In-Reply-To: <83o7k2u70z.fsf@gnu.org> 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:265897 Archived-At: Eli Zaretskii writes: >> > It could be "call as soon as we got 100 file names", for example. The >> > number can even be a separate parameter passed to the API. >> >> Will consing the filename strings also be delayed until the callback is invoked? > > No. I don't think it's possible (or desirable). We could keep them > in some malloc'ed buffer, of course, but what's the point? This would > only be justified if somehow creation of Lisp strings proved to be a > terrible bottleneck, which would leave me mightily surprised. Thanks for the clarification! Then, would it make sense to have such a callback API more general? (not just for listing directory files). For example, the callbacks might be attached to a list variable that will accumulate the async results. Then, the callbacks will be called on that list, similar to how process sentinels are called when a chunk of output is arriving to the process buffer. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at