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#52384: [External] : bug#52384: 26.3; dired buffer navigation tweak Date: Mon, 13 Dec 2021 15:07:49 +0200 Message-ID: <83fsqwmz4q.fsf@gnu.org> References: <69e7c202-8ad6-46c7-800a-f54f0b314d61@provide.net> <86y24rlylf.fsf@mail.linkov.net> <86zgp68c8j.fsf@mail.linkov.net> <86czm1k65h.fsf@mail.linkov.net> <83y24pmx7j.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="39798"; mail-complaints-to="usenet@ciao.gmane.io" Cc: juri@linkov.net, 52384@debbugs.gnu.org, stefan@marxist.se, amperry@provide.net To: Arthur Miller Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Dec 13 14:09:56 2021 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 1mwl5X-000A7K-UQ for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 13 Dec 2021 14:09:56 +0100 Original-Received: from localhost ([::1]:48530 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mwl5W-0008En-TZ for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 13 Dec 2021 08:09:54 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:46246) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mwl4g-0007KO-IJ for bug-gnu-emacs@gnu.org; Mon, 13 Dec 2021 08:09:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:42842) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mwl4g-00047J-9y for bug-gnu-emacs@gnu.org; Mon, 13 Dec 2021 08:09:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mwl4g-0001GH-2U for bug-gnu-emacs@gnu.org; Mon, 13 Dec 2021 08:09:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 13 Dec 2021 13:09:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 52384 X-GNU-PR-Package: emacs Original-Received: via spool by 52384-submit@debbugs.gnu.org id=B52384.16394008974790 (code B ref 52384); Mon, 13 Dec 2021 13:09:02 +0000 Original-Received: (at 52384) by debbugs.gnu.org; 13 Dec 2021 13:08:17 +0000 Original-Received: from localhost ([127.0.0.1]:54388 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mwl3t-0001F7-7b for submit@debbugs.gnu.org; Mon, 13 Dec 2021 08:08:17 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:45258) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mwl3o-0001En-E2 for 52384@debbugs.gnu.org; Mon, 13 Dec 2021 08:08:12 -0500 Original-Received: from [2001:470:142:3::e] (port=58296 helo=fencepost.gnu.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mwl3i-00041j-Ac; Mon, 13 Dec 2021 08:08:02 -0500 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=tKOjZxYku2DNPfGRcgWxFYOQmQb7A10fsinavmxyQa8=; b=RgSwe90OEnC6 1p+zq/G+FK4TwtG+LMroLtyky5Qp5T24Ngps121LxHsfVxGysI3Gf6oKervF0tl7E2eTuwBMojG4u x3JqyNY5IzyHlYKztrMITNJi9yp7VUk2bKX53n1g9xXczMXK45VRy+eBmh4/DPAWZbrOYiR2/qeXK pjlr/ZoJ5A751l2kp5IT6ZA6Zx70FPjbYkLU2Zo7xC4HmQxYOlsY4uyB+htmIVERWOWjR0eAX/kIO 0k5DS4CYqzL13vIjbrrfX+9sVGbOTyHTXsOJAjImZEFfU/+GmpFfr17Rm1UCcTbVgdy38lFu5kgKP +a5wTT0FZqJzsc13HHJjuw==; Original-Received: from [87.69.77.57] (port=3209 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 1mwl3b-0003Xr-NI; Mon, 13 Dec 2021 08:07:57 -0500 In-Reply-To: (message from Arthur Miller on Mon, 13 Dec 2021 11:14:27 +0100) 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" Xref: news.gmane.io gmane.emacs.bugs:222308 Archived-At: > From: Arthur Miller > Cc: juri@linkov.net, amperry@provide.net, stefan@marxist.se, > 52384@debbugs.gnu.org > Date: Mon, 13 Dec 2021 11:14:27 +0100 > > Eli Zaretskii writes: > > > No, ls-lisp.el is not used on any Posix hosts. > > I thought so; would it be unrealistic to suggest that Emacs by default switches > to ls-lisp.el on all hosts? Yes. ls-lisp doesn't support all of the switches that GNU ls supports. > I have done some measurements, not very scientific, just tested simply gnu ls vs > directory-files on my Arch Linux, with a directory ~5000 files. As I see it on > my computer, the most of time is spent on I/O, once the system has cached > inodes, it almost does not matter if I use ls binary or sl-lisp.el, or > directory-files directly: > > *** Welcome to IELM *** Type (describe-mode) for help. > ELISP> (benchmark-run 1 (find-file "/s/backup/unsorted")) > (0.202678959 0 0.0) > > ELISP> (benchmark-run 1 (directory-files "/s/backup/unsorted")) > (0.003737047 0 0.0) > > ELISP> (benchmark-run 1 (find-file "/s/backup/unsorted")) > (0.001892588 0 0.0) > > ELISP> (benchmark-run 1 (find-file "/s/backup/unsorted")) > (0.001898974 0 0.0) > > ls is faster of course, but not like a magnitude faster. I don't understand what you compared here. Which results are wil ls and which with ls-lisp? And why do you benchmark directory-files and nit insert-directory?