From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Arthur Miller Newsgroups: gmane.emacs.bugs Subject: bug#52384: [External] : bug#52384: 26.3; dired buffer navigation tweak Date: Mon, 13 Dec 2021 17:21:56 +0100 Message-ID: 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> <83fsqwmz4q.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="8125"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: juri@linkov.net, 52384@debbugs.gnu.org, stefan@marxist.se, amperry@provide.net To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Dec 13 17:23:19 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 1mwo6e-0001sp-76 for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 13 Dec 2021 17:23:19 +0100 Original-Received: from localhost ([::1]:41748 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mwo6c-00078U-Oi for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 13 Dec 2021 11:23:14 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:46568) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mwo6Q-000787-CF for bug-gnu-emacs@gnu.org; Mon, 13 Dec 2021 11:23:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:45096) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mwo6Q-0001DU-3M for bug-gnu-emacs@gnu.org; Mon, 13 Dec 2021 11:23:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mwo6P-0006bi-W7 for bug-gnu-emacs@gnu.org; Mon, 13 Dec 2021 11:23:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Arthur Miller Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 13 Dec 2021 16:23:01 +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.163941253225318 (code B ref 52384); Mon, 13 Dec 2021 16:23:01 +0000 Original-Received: (at 52384) by debbugs.gnu.org; 13 Dec 2021 16:22:12 +0000 Original-Received: from localhost ([127.0.0.1]:56641 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mwo5Y-0006aE-SG for submit@debbugs.gnu.org; Mon, 13 Dec 2021 11:22:12 -0500 Original-Received: from mail-oln040092075051.outbound.protection.outlook.com ([40.92.75.51]:20648 helo=EUR04-VI1-obe.outbound.protection.outlook.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mwo5V-0006Zh-Id for 52384@debbugs.gnu.org; Mon, 13 Dec 2021 11:22:07 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=fFwcuywbMoVgZYik5Q+gQPnMYC7X2lywpoPqOkbJq79YO+VlTVPyqvxdNqGfawTjpvmwLXhKvEtgmOengo208r9IAftYy4NyY8AdPJj1deyXT/BTp5jS9/XtVSuVkQtnlz/KhNds2piE79G15R0o5HkI/YyFznanbZ9GMgc/Gxq3i19KlEQ+DQZzTzrKEOw+YGRsUBflHSpkyeumKIDn8dlnFf/LT3A7wttnSFheudoqQLhuhyKTxncpvspVc3Z0dXc5eT3GtVf/084AQgYvdExpsKvGLZTtCMpd6OhuPWjJp7hUE+an1FcCz0wov07faObXzZtvot8yUzHu1amsYQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=RbPD2tM1a5LZR9lwkcTpnP4a/Bv2h0HzAJLTkbjibKI=; b=QveJP5U9o4FQ+Yrsh916UHb53O0HSow1Qvcsz4V6IpIjJi6EdMzdulX2bybdFMJxyW+kafIJpq7KB53Ug7ps5fApE0OkvjQrKzeXWLPMe7aRDN+Spwsc+gH8ZHTojYiC2+/aIaBpWoLmCuhJhFkFXqg3JLn+SVA15iGGh6WyhqZi7ocd6c5cHiDNMazj+2mw0SbdQ7bV8BjrL0biK96K9skUiU/jdPnR7zFKeYr0nkfGYlcS08KFKRdaLwUwNGjmhNXMGf8JIMTJNqcdyRXor10QxUZrfTENdog4avATjA3rBod0Ot+LuPBSnOYdNrGm4QEbFpRrJrg/Eaa7xFnFug== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=live.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=RbPD2tM1a5LZR9lwkcTpnP4a/Bv2h0HzAJLTkbjibKI=; b=SA4bV/RkG4hjInNhQhwa6/hZPJEYNctKfPLjh81pK9elIwUIFcejtBZWoJcYMgI8ZBn7s13AePeSg3DStIJVY50X4KUhbBkLyOqSvojhVfdwLnNczKASknKQM6/y0R+kW6trM+nd31Hg9lXTHspqeULhDdC8VzGFBPb2N/mzqdYaUfUp5A8KDHsyR57T+zZdVc6qonQw06MY2uc+eDt3NJV2GNyO7UNMJpOyAPbmNV3yJuGczQAEkdhP7OD59MBWg0hcLlR6kWRvAICesngERb2+CwATRNKRTlz+6+w2tnAXtNkgTscw1si31ri7ilXA/e6MluYx+nPTk4rWCXi42Q== Original-Received: from AM9PR09MB4977.eurprd09.prod.outlook.com (2603:10a6:20b:304::20) by AM0PR09MB2594.eurprd09.prod.outlook.com (2603:10a6:208:dd::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4778.14; Mon, 13 Dec 2021 16:21:58 +0000 Original-Received: from AM9PR09MB4977.eurprd09.prod.outlook.com ([fe80::b012:5fd9:9447:d64a]) by AM9PR09MB4977.eurprd09.prod.outlook.com ([fe80::b012:5fd9:9447:d64a%5]) with mapi id 15.20.4778.017; Mon, 13 Dec 2021 16:21:58 +0000 In-Reply-To: <83fsqwmz4q.fsf@gnu.org> (Eli Zaretskii's message of "Mon, 13 Dec 2021 15:07:49 +0200") X-TMN: [ylM1FwPF7fzV3n+OSTtPShq7mhBrWI86] X-ClientProxiedBy: HE1PR0301CA0018.eurprd03.prod.outlook.com (2603:10a6:3:76::28) To AM9PR09MB4977.eurprd09.prod.outlook.com (2603:10a6:20b:304::20) X-Microsoft-Original-Message-ID: <87wnk8pja3.fsf@live.com> X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 40219919-fe08-405a-7be3-08d9be54af97 X-MS-TrafficTypeDiagnostic: AM0PR09MB2594:EE_ X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 3skfRKAmGrvd8ls0r5lacCXeo28eXpdDjJVKYt/c8LW7abp1cviRoshXPVquRNBTw3tvkB+YUJq6iEsaJW9LFhyXpexw5Zo3z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SB5oI2kTWC8BmgAM/WcrbXoAW57G1F01toV/A5q0ovnJB0WL/ouWlA+iE8WPxLOS2VZ5ogK7fKA6LOq3fYjE5FhaiCV4ddMCbfC5L+9jfeJn1eurXGg8joH4YQ6JQmbpOnXAEUAhjTwDLkpBxhESEHOb+AWSWhiIV0nQh/9HdRNi5BwLxuZfT6au6hgq4aQTQbJHeY6NDgtZXst8KU8BR6zlsdBNjlF9hLxIYrRmIKmuCukML+WkoxF3t5HKb/tL+ufC Vx7LvQyLoUBMc2vy/ytn2Ly8I5s/XK4Uw8QHzxT9WXk4KwYXTLLek/RDp7Y61FwtUGw0Xq+CZF41hw9ScWbTOAqkhQ6/BjZfD1 X-OriginatorOrg: sct-15-20-4755-11-msonline-outlook-64da6.templateTenant X-MS-Exchange-CrossTenant-Network-Message-Id: 40219919-fe08-405a-7be3-08d9be54af97 X-MS-Exchange-CrossTenant-AuthSource: AM9PR09MB4977.eurprd09.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Dec 2021 16:21:58.6637 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR09MB2594 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:222324 Archived-At: Eli Zaretskii writes: >> 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. Yes, I know it does not.. The idea is that it does not need to support everything. By default it only uses -la flags anyway. Users who need extra ffeatures of gnu ls, has to add extra switches themselves anyway. Also, gnu ls is supported out of the box, probably only on gnu/Linux systems. Those users (me included) could set ls-lisp-use-insert-directory-program to t, as MS users do nowadays. As said, that would allow Emacs to count on uniform interface in Dired by default at least, and could come with option to group directories by default. >> 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? It was just a quick run to show that file listing is dominated by I/O not so much by extra lisp work. First run is opening a directory which was not opened in my system earlier, so OS has to catch it from the disk. First find-file is with with gnu ls, other with ls-lisp.el. I threw in directory-files since I think it is the lowest built-in to list files without additional work on top of it. I was just after showing that performance is not suffering too much if Emacs used ls-lisp.el by default.