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:56:20 +0300 Message-ID: <491724c3-534b-a498-8e48-c8d94531875c@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> <83351bq1ds.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="12475"; 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 Wed Jul 26 03:57:19 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 1qOTm7-0002xs-W2 for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 26 Jul 2023 03:57:17 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qOTlv-0004hm-TU; Tue, 25 Jul 2023 21:57: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 1qOTlu-0004hd-G4 for bug-gnu-emacs@gnu.org; Tue, 25 Jul 2023 21:57: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 1qOTlt-0000iD-Sq for bug-gnu-emacs@gnu.org; Tue, 25 Jul 2023 21:57:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qOTlt-00049l-Lc for bug-gnu-emacs@gnu.org; Tue, 25 Jul 2023 21:57:01 -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:57: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.169033659215936 (code B ref 64735); Wed, 26 Jul 2023 01:57:01 +0000 Original-Received: (at 64735) by debbugs.gnu.org; 26 Jul 2023 01:56:32 +0000 Original-Received: from localhost ([127.0.0.1]:47250 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qOTlP-00048x-Qs for submit@debbugs.gnu.org; Tue, 25 Jul 2023 21:56:32 -0400 Original-Received: from wout5-smtp.messagingengine.com ([64.147.123.21]:38135) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qOTlO-00048l-2I for 64735@debbugs.gnu.org; Tue, 25 Jul 2023 21:56:30 -0400 Original-Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailout.west.internal (Postfix) with ESMTP id D2DA732008C0; Tue, 25 Jul 2023 21:56:23 -0400 (EDT) Original-Received: from mailfrontend1 ([10.202.2.162]) by compute2.internal (MEProxy); Tue, 25 Jul 2023 21:56:24 -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= 1690336583; x=1690422983; bh=Hlobxmo9o5+6CYqNyUY7Jmyztu8RkRGhtjr sFcEFgwk=; b=fzjTWdkQpzSzDghfy3iudzekjoVZ3TUwKMSS2suPCK/daaMWwB5 7yBJW3O6z7VwvwSx+k3CiQHzmHJeEgIBtqmMSaWO3hvS+DVsTTUaGuC2eugLUh1h 9S5qXpFyqJDj6KDgR+pswMF54LTk2eJnSp5kVy+Vu6fhr8cjwhyQLNLQn0uv33gC CtIMS/YimZG6hrM2Qx5JjGgyNkYsbsRdJPPfYdyD8E37rHuOCqNLpwGIj8pZu14J PWnAMQkwyJFzs9iVVZYNgyyV9Hac+PkLiebxbbI585QuP9bUqGMQ+S/JvIW/457r AsDTdQONvtu/VDJrOp766mmb9YRVRRcqE0g== 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= 1690336583; x=1690422983; bh=Hlobxmo9o5+6CYqNyUY7Jmyztu8RkRGhtjr sFcEFgwk=; b=CTxSgj9swJ0AurQZ2caWn0O3EWnxcq3g9prj8P4CPIVsF/SvWfS hPipstfdZMI4jWzVvTtYqaRYcSQ9OfeaQvmCyez4hFNOcI9iIrxtBLXsncCA5107 jiIcOEKnIobLZ6FBpj513PNCl+9oiYIM0kpCqKZTZTezwH1zp4HeSl+J8tkixgMx ztWEU7T5IIZRlQxSXd8C+3jg1csdRmSucCRq3q3rKg693+KcPRsZsqZw/S/3o3hK 4fvNUiVHF+56KzWuBkmFmusLiemXB2NA9w4C9miS2gLCT0Fh/fvvp/XoZ0zGdxIV OgESjWFRZR0kBp/BCwmd3ZwyTi2BFFmjN6A== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedviedriedugdehudcutefuodetggdotefrodftvf 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:56:22 -0400 (EDT) Content-Language: en-US In-Reply-To: <83351bq1ds.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:266094 Archived-At: On 25/07/2023 21:42, Eli Zaretskii wrote: > Almost no change on Windows: > > (("built-in" . "Elapsed time: 1.218750s (0.078125s in 5 GCs)") > ("with-find" . "Elapsed time: 8.984375s (0.109375s in 7 GCs)") > ("with-find-p" . "Elapsed time: 8.718750s (0.046875s in 3 GCs)") > ("with-find-sync" . "Elapsed time: 8.921875s (0.046875s in 3 GCs)")) > > I'm beginning to suspect the implementation of pipes (and IPC in > general). How else can such slowdown be explained? Seems so (I'm not well-versed in the lower level details, alas). Your other idea (spending time in text conversion) also sounds plausible, but I don't know whether this much overhead can be explained by it. And don't we have to convert any process's output to our internal encoding anyway, on any platform?