From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#64735: 29.0.92; find invocations are ~15x slower because of ignores Date: Sat, 22 Jul 2023 22:06:55 +0300 Message-ID: <83tttv7okw.fsf@gnu.org> References: <87edl1scbw.fsf@gmx.de> <87fs5hmp6i.fsf@localhost> <87cz0lmoxy.fsf@localhost> <83v8edzb31.fsf@gnu.org> <87r0p1cta3.fsf@gmx.de> <87pm4ll7ox.fsf@localhost> <87a5vpcmc7.fsf@gmx.de> <878rb9l1f5.fsf@localhost> <87zg3pb6yt.fsf@gmx.de> <83zg3p9s39.fsf@gnu.org> <878rb944wi.fsf@localhost> <83tttx9q4v.fsf@gnu.org> <87pm4lb4fr.fsf@gmx.de> <83pm4l9n0o.fsf@gnu.org> <87jzutb14l.fsf@gmx.de> <83mszp9kl2.fsf@gnu.org> <83h6pwa52z.fsf@gnu.org> <87ilaci637.fsf@catern.com> <83sf9g88eh.fsf@gnu.org> <87cz0jj25g.fsf@catern.com> <83wmyr7sbq.fsf@gnu.org> <83v8eb7q8d.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="6735"; mail-complaints-to="usenet@ciao.gmane.io" Cc: dmitry@gutov.dev, yantar92@posteo.net, michael.albinus@gmx.de, rms@gnu.org, 64735@debbugs.gnu.org To: sbaugh@catern.com, sbaugh@janestreet.com Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Jul 22 21:07:29 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 1qNHwt-0001V3-C7 for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 22 Jul 2023 21:07:28 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qNHwe-000858-9o; Sat, 22 Jul 2023 15:07:12 -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 1qNHwU-00084l-DU for bug-gnu-emacs@gnu.org; Sat, 22 Jul 2023 15:07:06 -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 1qNHwU-0008FA-5r for bug-gnu-emacs@gnu.org; Sat, 22 Jul 2023 15:07:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qNHwT-0007SF-O9 for bug-gnu-emacs@gnu.org; Sat, 22 Jul 2023 15:07:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 22 Jul 2023 19:07: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.169005279628625 (code B ref 64735); Sat, 22 Jul 2023 19:07:01 +0000 Original-Received: (at 64735) by debbugs.gnu.org; 22 Jul 2023 19:06:36 +0000 Original-Received: from localhost ([127.0.0.1]:37583 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qNHw3-0007Rb-V4 for submit@debbugs.gnu.org; Sat, 22 Jul 2023 15:06:36 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:41700) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qNHw1-0007RP-De for 64735@debbugs.gnu.org; Sat, 22 Jul 2023 15:06:34 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qNHvu-0008CH-6Q; Sat, 22 Jul 2023 15:06:26 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=NNm6DMgiXIKdfH4b8Iqyn4idxdxjF3oxB9t+OnorII0=; b=dqNOz+Gp8JBa wWF7J7egrnSYdJxeqtT/0viwYdOzC/Y5CxuBm3aIOdZwtdCGIhp0TGzfOJk/fBnhzwu4+hVQ/TK3k ZgOfYJX1Z4e5Waz0Rcc5/ysRoCckNONmlU97y8fiG+hPN86KUutpYROWqt2TdWrO/3HhhnszDc8rx be7ROoz0PiuE+5MIZliftV9rfm6jyDZeNTlCipNpczSI5QxWc/XhiYP5z03q+I7zOt1wznlZGfCLq bUqJwivYM8Aogz36pAEX7v6jm1ucgfRDh9LwuJwib7xO4AS0vR4jDQ4ImmortMoSbAV02u5v51H6y p4Wnscu9rT8Zs6sIYJNA7A==; Original-Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qNHvm-0008KD-Ci; Sat, 22 Jul 2023 15:06:18 -0400 In-Reply-To: <83v8eb7q8d.fsf@gnu.org> (message from Eli Zaretskii on Sat, 22 Jul 2023 21:31:14 +0300) 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:265841 Archived-At: > Cc: dmitry@gutov.dev, yantar92@posteo.net, michael.albinus@gmx.de, rms@gnu.org, > 64735@debbugs.gnu.org > Date: Sat, 22 Jul 2023 21:31:14 +0300 > From: Eli Zaretskii > > My results on MS-Windows are less encouraging: > > (my-bench 2 "d:/usr/archive" "") > (("built-in" . "Elapsed time: 1.250000s (0.093750s in 5 GCs)") > ("with-find" . "Elapsed time: 8.578125s (0.109375s in 7 GCs)")) And here's from a GNU/Linux machine, which is probably not very fast: (my-bench 10 "/usr/lib" "") (("built-in" . "Elapsed time: 4.410613s (2.077311s in 56 GCs)") ("with-find" . "Elapsed time: 3.326954s (1.997251s in 54 GCs)")) Faster, but not by a lot. On this system /usr/lib has 18000 files in 1860 subdirectories. Btw, the Find command with pipe to some other program, like wc, finishes much faster, like 2 to 4 times faster than when it is run from find-directory-files-recursively. That's probably the slowdown due to communications with async subprocesses in action.