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: Wed, 26 Jul 2023 04:51:15 +0300 Message-ID: <35163e56-607d-9c5b-e3e8-5d5b548b3cb7@gutov.dev> References: <1fd5e3ed-e1c3-5d6e-897f-1d5d55e379fa@gutov.dev> <87wmyupvlw.fsf@localhost> <5c4d9bea-3eb9-b262-138a-4ea0cb203436@gutov.dev> <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> 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="27988"; 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, Eli Zaretskii , 64735@debbugs.gnu.org To: Ihor Radchenko Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Jul 26 03:52:27 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 1qOThR-0006x6-6X for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 26 Jul 2023 03:52:26 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qOTh5-0004Cu-Ik; Tue, 25 Jul 2023 21:52: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 1qOTh4-0004Cj-Q6 for bug-gnu-emacs@gnu.org; Tue, 25 Jul 2023 21:52: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 1qOTh4-000780-Ia for bug-gnu-emacs@gnu.org; Tue, 25 Jul 2023 21:52:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qOTh4-00042Q-EQ for bug-gnu-emacs@gnu.org; Tue, 25 Jul 2023 21:52: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: Wed, 26 Jul 2023 01:52: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.169033628715478 (code B ref 64735); Wed, 26 Jul 2023 01:52:02 +0000 Original-Received: (at 64735) by debbugs.gnu.org; 26 Jul 2023 01:51:27 +0000 Original-Received: from localhost ([127.0.0.1]:47245 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qOTgV-00041a-3H for submit@debbugs.gnu.org; Tue, 25 Jul 2023 21:51:27 -0400 Original-Received: from wout5-smtp.messagingengine.com ([64.147.123.21]:57915) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qOTgT-00041K-77 for 64735@debbugs.gnu.org; Tue, 25 Jul 2023 21:51:25 -0400 Original-Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.west.internal (Postfix) with ESMTP id DA7CE32007E8; Tue, 25 Jul 2023 21:51:18 -0400 (EDT) Original-Received: from mailfrontend1 ([10.202.2.162]) by compute5.internal (MEProxy); Tue, 25 Jul 2023 21:51:19 -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=fm2; t= 1690336278; x=1690422678; bh=LjT85s9eYxb/9vf3gzkWEl6ej7yi2/gbGhI PdMab67Y=; b=mmErWlp8QxXlYm2PPav8POsTd55cqx4sf/29z2EsLLwiJquNESY eFBiOLHnMANubeUdoG1jruqPRM5t1dLEV3Vdj5ThAs9S3/HRrn5TvybAC3Uvl2os +aVhdkRvbCAecsRN3U3ZNhWygmEVUYEH/XTjuSx910fSkqLqyJ1siUXfNqirexp4 +uOCFeyTZroMjSS3J1aOcqB1Yn17pFeJDHqMBryPL+5Ag6t2GsvocRnnHkmqmdNC xhduNIjFDXzddpaf/3K/0VZ2CBtsQCwb9Ffm2DRqVHIz1IEicF1nFfcC+2mnhvak 7SlzcuygQWdgWVgB4Ra/h7CfYjpxIHlKXfA== 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=fm3; t= 1690336278; x=1690422678; bh=LjT85s9eYxb/9vf3gzkWEl6ej7yi2/gbGhI PdMab67Y=; b=VztAE3mPMlWLZajzNCDgoiqvYd4J51omnP+SJWuqg+/5OLOhqPb UctflD3tSz9fEjiKerTSfOZi55kF2IwItma/uWrdXAAWmHRsv/Usc/3fTuC7Uw8a dwrE/BcbC2MGpk1LQEYXF2K6kNBGNKkcq5W8d913BbnmdELm+WpSu66QBgDAUDYi lo9pUfdkXkHk8vNljRICG31YBlmcriXyVbTCYFEARTDvn+9J6vmetLkn19RG85Ax 86Qx74NgDeXKrnlz19STJIuA+sofN+hOBVbmm0085lsEJnTLDevEqVMp91TssEEj 8aPKMGqEKxV2fF82ppyojaVEjQ8/ZqRtvSA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedviedriedugdeglecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefkffggfgfuvfevfhfhjggtgfesthejredttdefjeenucfhrhhomhepffhmihht rhihucfiuhhtohhvuceoughmihhtrhihsehguhhtohhvrdguvghvqeenucggtffrrghtth gvrhhnpeeigfetveehveevffehledtueekieeikeeufeegudfgfeeghfdulefgfeevledv veenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegumh hithhrhiesghhuthhovhdruggvvh X-ME-Proxy: Feedback-ID: i0e71465a:Fastmail Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 25 Jul 2023 21:51:16 -0400 (EDT) Content-Language: en-US In-Reply-To: <87351cs8no.fsf@localhost> 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:266093 Archived-At: On 25/07/2023 11:22, Ihor Radchenko wrote: > Dmitry Gutov writes: > >> I'm attaching an extended benchmark, one that includes a "synchronous" >> implementation as well. Please give it a spin as well. > GNU/Linux SSD > > (my-bench 10 "/usr/src/linux/" "") > > (("built-in" . "Elapsed time: 7.034326s (3.598539s in 14 GCs)") > ("built-in no filename handler alist" . "Elapsed time: 5.907194s (3.698456s in 15 GCs)") > ("with-find" . "Elapsed time: 6.078056s (4.052791s in 16 GCs)") > ("with-find-p" . "Elapsed time: 4.496762s (2.739565s in 11 GCs)") > ("with-find-sync" . "Elapsed time: 3.702760s (1.715160s in 7 GCs)")) Thanks, for the extra data point in particular. Easy to see how it compares to the most efficient use of 'find', right (on GNU/Linix, at least)? It's also something to note that, GC-wise, numbers 1 and 2 are not the worst: the time must be spent somewhere else.