From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.bugs Subject: bug#64735: 29.0.92; find invocations are ~15x slower because of ignores Date: Sun, 10 Sep 2023 04:30:24 +0300 Message-ID: <2e21ec81-8e4f-4c02-ea15-43bd6da3daa7@gutov.dev> References: <87tttypp2e.fsf@localhost> <87r0p030w0.fsf@yahoo.com> <83sf9f6wm0.fsf@gnu.org> <83sf9eub9d.fsf@gnu.org> <2d844a34-857d-3d59-b897-73372baac480@gutov.dev> <83bkg2tsu6.fsf@gnu.org> <83bd4246-ac41-90ec-1df3-02d0bd59ca44@gutov.dev> <834jlttv1p.fsf@gnu.org> <937c3b8e-7742-91b7-c2cf-4cadd0782f0c@gutov.dev> <83a5vlsanw.fsf@gnu.org> <69a98e2a-5816-d36b-9d04-8609291333cd@gutov.dev> <87351cs8no.fsf@localhost> <35163e56-607d-9c5b-e3e8-5d5b548b3cb7@gutov.dev> <878rb3m43b.fsf@localhost> <83v8e6lyi4.fsf@gnu.org> <35f8b664-0241-9f96-1aa0-20ca51b2d34c@gutov.dev> <59c30342-a7e0-d83b-a128-0faae4cbd633@gutov.dev> <83pm4bi6qa.fsf@gnu.org> <83bkfs2tw5.fsf@gnu.org> <18a0b4d8-32bd-3ecd-8db4-32608a1ebba7@gutov.dev> <83il8lxjcu.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="23120"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 Cc: luangruo@yahoo.com, sbaugh@janestreet.com, yantar92@posteo.net, 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 Sep 10 03:31:18 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 1qf9IC-0005pj-2b for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 10 Sep 2023 03:31:16 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qf9Hz-0000Mc-JW; Sat, 09 Sep 2023 21:31: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 1qf9Hw-0000Ll-Eb for bug-gnu-emacs@gnu.org; Sat, 09 Sep 2023 21:31: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 1qf9Hw-0005Oz-5e for bug-gnu-emacs@gnu.org; Sat, 09 Sep 2023 21:31:00 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qf9Hy-00036x-8h for bug-gnu-emacs@gnu.org; Sat, 09 Sep 2023 21:31:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Dmitry Gutov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 10 Sep 2023 01:31: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.169430944211934 (code B ref 64735); Sun, 10 Sep 2023 01:31:02 +0000 Original-Received: (at 64735) by debbugs.gnu.org; 10 Sep 2023 01:30:42 +0000 Original-Received: from localhost ([127.0.0.1]:48660 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qf9He-00036P-18 for submit@debbugs.gnu.org; Sat, 09 Sep 2023 21:30:42 -0400 Original-Received: from wout1-smtp.messagingengine.com ([64.147.123.24]:59513) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qf9HZ-000368-Ah for 64735@debbugs.gnu.org; Sat, 09 Sep 2023 21:30:40 -0400 Original-Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.west.internal (Postfix) with ESMTP id F2DF1320085B; Sat, 9 Sep 2023 21:30:27 -0400 (EDT) Original-Received: from mailfrontend2 ([10.202.2.163]) by compute3.internal (MEProxy); Sat, 09 Sep 2023 21:30:28 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gutov.dev; h=cc :cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:sender:subject:subject:to:to; s=fm3; t= 1694309427; x=1694395827; bh=cLJDhPyxPDrxRcQ1y2gfepKp3soinuXDF3w olOn9Ax0=; b=dXKbGqIif99K2SUjRssTAJom3y/Z7qJCu97wj5bhSEmeYU+yPwf SP//ePN5HoqD19JVHzF5oLlZWv76EIyVZnibE2YjzdC9VoIgVCmN5qgoCzAbI+8s g2LQ1Iqt8OwxPD20jtX8BytDRMOoehGBni5rlHv537pNpec3xdS+C8VStNJIEoFw 3a8qcMr5i6YMHHuuKxYgbTceOS5KBzOvaaFaMSi6aRU7hrWp9b/tjhTtex4cDkmL +7Q7OG9x35k5N4HmhigwtyyeOOn5Uox5efqJFt03HMSXAaiMN/C9ilTyF2eSDNV6 JLZDffQDVYgY9b+bwmKmksEx8hG4Cr+JvZg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:sender:subject:subject:to:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t= 1694309427; x=1694395827; bh=cLJDhPyxPDrxRcQ1y2gfepKp3soinuXDF3w olOn9Ax0=; b=zPc36bjldH1Cdk9++EGP3pQBlrrpqxFJgsLaOg6JQ0K7gxLqPTh Eexs6XWkpyM5KnHnWpLyko9t/e3v6kQcJE/rruG/QnfumIPjKFX/Z7+jmyg3gZhz CDDbM4+ThysQAB7e2JjLgbejWQom1nN7TeMCRn/f3wLf6FwLdA1saFb01RlK32qv aQI8xzdEiFePMv1ksMO6H/mWljeJyYcx5cHroJUd3BcP9H+RUUzYZQ0YVrTC/5Jf 644n7VPHgtiqsw4eLKvAITtaE8WKmUS7eKL+TApMKnZiZbo+nfGUirEarmaeWl6k efl1//x84fFn8vbEmUgDSUF8693dLxCAXIQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedviedrudeitddggeefucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepkfffgggfuffvvehfhfgjtgfgsehtjeertddtfeejnecuhfhrohhmpeffmhhi thhrhicuifhuthhovhcuoegumhhithhrhiesghhuthhovhdruggvvheqnecuggftrfgrth htvghrnhephfeutdekveeggeetteekfeejffegudduudfhueevleeftdffffeggeeivddv jeelnecuffhomhgrihhnpehgnhhurdhorhhgnecuvehluhhsthgvrhfuihiivgeptdenuc frrghrrghmpehmrghilhhfrhhomhepughmihhtrhihsehguhhtohhvrdguvghv X-ME-Proxy: Feedback-ID: i0e71465a:Fastmail Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sat, 9 Sep 2023 21:30:25 -0400 (EDT) Content-Language: en-US In-Reply-To: <83il8lxjcu.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:269905 Archived-At: On 08/09/2023 09:35, Eli Zaretskii wrote: >>> These questions can only be answered by dumping the values of the 2 GC >>> thresholds and of consing_until_gc for each GC cycle. It could be >>> that we are consing more Lisp memory, or it could be that one of the >>> implementations provides fewer opportunities for Emacs to call >>> maybe_gc. Or it could be some combination of the two. >> Do you think the outputs of >> https://elpa.gnu.org/packages/emacs-gc-stats.html could help? > I think you'd need to expose consing_until_gc to Lisp, and then you > can collect the data from Lisp. I can expose it to Lisp and print all three from post-gc-hook, but the result just looks like this: gc-pct 0.1 gc-thr 800000 cugc 4611686018427387903 Perhaps I need to add a hook which runs at the beginning of GC? Or of maybe_gc even? Alternatively, (memory-use-counts) seems to retain some counters which don't get erased during garbage collection. >> All examples which use make-process call it with :connection-type 'pipe. >> >> The one that calls process-file (the "synchronous" impl) also probably >> does, but I don't see that in the docstring. > Yes, call-process uses pipes. So finding the optimum boils down to > running various scenarios. It is also possible that the optimum will > be different on different systems, btw. Sure, but I'd like to improve the state of affairs in at least the main one. And as for MS Windows, IIRC all find-based solution are currently slow equally, so we're unlikely to make things worse there anyway.