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: Thu, 20 Jul 2023 15:38:04 +0300 Message-ID: <1fd5e3ed-e1c3-5d6e-897f-1d5d55e379fa@gutov.dev> References: 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="28468"; 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 To: Spencer Baugh , 64735@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Jul 20 14:39:20 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 1qMSwA-00075u-EN for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 20 Jul 2023 14:39:20 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qMSvw-0002O5-5G; Thu, 20 Jul 2023 08:39:04 -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 1qMSvv-0002Ns-7k for bug-gnu-emacs@gnu.org; Thu, 20 Jul 2023 08:39:03 -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 1qMSvu-0007Vo-VF for bug-gnu-emacs@gnu.org; Thu, 20 Jul 2023 08:39:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qMSvu-0008QB-Eo for bug-gnu-emacs@gnu.org; Thu, 20 Jul 2023 08:39: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: Thu, 20 Jul 2023 12:39: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.168985670732323 (code B ref 64735); Thu, 20 Jul 2023 12:39:02 +0000 Original-Received: (at 64735) by debbugs.gnu.org; 20 Jul 2023 12:38:27 +0000 Original-Received: from localhost ([127.0.0.1]:57936 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qMSvJ-0008PF-TR for submit@debbugs.gnu.org; Thu, 20 Jul 2023 08:38:27 -0400 Original-Received: from out3-smtp.messagingengine.com ([66.111.4.27]:45303) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qMSv9-0008Ot-NQ for 64735@debbugs.gnu.org; Thu, 20 Jul 2023 08:38:24 -0400 Original-Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id 7A7CC5C0159; Thu, 20 Jul 2023 08:38:08 -0400 (EDT) Original-Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Thu, 20 Jul 2023 08:38:08 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gutov.dev; h=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=fm1; t= 1689856688; x=1689943088; bh=GbBbzLKPBKtUO8BYZ1LApyV+j398P3T87SF co2FbRdQ=; b=dAt2IVxYL9WcotUybjgTGMPWWC6O09AHEZhLR6aOcv/Dr+qva7f pW/0retKKGFK0JbLj1/FadESjLG7VyYhAU8H9RXvfJPGrzpsKsg7eQfi24uGwfzr NKSLSYjS4vlHmmq2CwW6/8opH5yjXD5a+BbLMv7Y9RKSOBdCLHTjnJBypg6x1I48 nisHenuubAEHB03N2F1l8ugrZefhY6tNSfjglsdRRdPiHnvaoqmgpVm2q2RQJQE0 1F+izvBLkAJi8q+qoggbcQS3MBixIEz/EwiI05hOzZdNbeze5aRWS3bPg7rBw+E9 7PrQH81jjHpJpI1WhKmmlNk+4jBR89c4cmg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=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=1689856688; x= 1689943088; bh=GbBbzLKPBKtUO8BYZ1LApyV+j398P3T87SFco2FbRdQ=; b=c jbpX4JTp2f8VGcgJDGaNg4DaYFJYs5ulvWQgiJw8jg2jankMJWL2tPolB12NJVla mGy+OfUwFEEhLIOStyji78w01uNS/j6y33YFEqC07V0F4O4CvaLAK7pRcN7z6xnM Yd9vvy/6QSuEorY09sVoaIZi6Sp03eqOOuO/jZ1mkGYBzb1jpDTFiSMoVbu0TCJY zzAX9bwWXkq+Ncekni72Olg7Nh8n1wh3sR4zGNWVgHsoKruBBsieLNktrBt3bQy3 fBaqe+cirFzqbHWEfyjXP+095P5nsdrIIMMY0ntyFNmPCaXI/A9Jt5bZZoV61Rfq Icjpcycy/4GC74IsIEUsA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedviedrhedtgdehgecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefkffggfgfuvfhfhfgjtgfgsehtjeertddtfeejnecuhfhrohhmpeffmhhithhr hicuifhuthhovhcuoegumhhithhrhiesghhuthhovhdruggvvheqnecuggftrfgrthhtvg hrnhepgeehtdehudejieetuedttdejkeehjeetueekheffuddtjeeuvdefveeuveeiuddu necuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepughmih htrhihsehguhhtohhvrdguvghv X-ME-Proxy: Feedback-ID: i0e71465a:Fastmail Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 20 Jul 2023 08:38:07 -0400 (EDT) Content-Language: en-US In-Reply-To: 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:265592 Archived-At: On 20/07/2023 00:16, Spencer Baugh wrote: > In Emacs alone, there are a few things we could do: > - we could mitigate the find bug by optimizing the regexp before we pass > it to find; this should basically remove all the overhead but makes the > find command uglier and harder to edit > - we could remove rare and likely irrelevant things from > completion-ignored-extensions and vc-ignore-dir-regexp (which are used > to build these lists of ignores) I like these two approaches. > - we could use our own recursive directory-tree walking implementation > (directory-files-recursively), if we found a nice way to pipe its output > directly to grep etc without going through Lisp. (This could be nice > for project-files, at least) This will probably not work as well. Last I checked, Lisp-native file listing was simply slower than 'find'.