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#44273: "total used in directory 19 available 5.2 GiB" Date: Wed, 28 Oct 2020 17:28:45 +0200 Message-ID: <83o8kmcqtu.fsf@gnu.org> References: <87sg9zgchl.5.fsf@jidanni.org> <9FFBEBAF-FBB3-4AC9-950E-70B3927032F9@acm.org> <87h7qevdfc.fsf@gnus.org> <7B559E59-D3CA-4515-B17C-336029B7FBFA@acm.org> <877dravck1.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="22239"; mail-complaints-to="usenet@ciao.gmane.io" Cc: mattiase@acm.org, jidanni@jidanni.org, 44273@debbugs.gnu.org To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Oct 28 16:33:12 2020 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 1kXnRo-0005fE-EV for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 28 Oct 2020 16:33:12 +0100 Original-Received: from localhost ([::1]:43792 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kXnRn-0000li-Fz for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 28 Oct 2020 11:33:11 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:47550) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kXnNm-0006Lk-HR for bug-gnu-emacs@gnu.org; Wed, 28 Oct 2020 11:29:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:38629) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kXnNl-0007vE-SI for bug-gnu-emacs@gnu.org; Wed, 28 Oct 2020 11:29:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kXnNl-0002km-PQ for bug-gnu-emacs@gnu.org; Wed, 28 Oct 2020 11:29: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: Wed, 28 Oct 2020 15:29:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 44273 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: wontfix patch Original-Received: via spool by 44273-submit@debbugs.gnu.org id=B44273.160389893710574 (code B ref 44273); Wed, 28 Oct 2020 15:29:01 +0000 Original-Received: (at 44273) by debbugs.gnu.org; 28 Oct 2020 15:28:57 +0000 Original-Received: from localhost ([127.0.0.1]:50175 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kXnNg-0002kU-Ng for submit@debbugs.gnu.org; Wed, 28 Oct 2020 11:28:57 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:47412) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kXnNf-0002kG-3h for 44273@debbugs.gnu.org; Wed, 28 Oct 2020 11:28:55 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:46313) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kXnNZ-0007u9-Bp; Wed, 28 Oct 2020 11:28:49 -0400 Original-Received: from [176.228.60.248] (port=3569 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1kXnNY-0007gz-4t; Wed, 28 Oct 2020 11:28:48 -0400 In-Reply-To: <877dravck1.fsf@gnus.org> (message from Lars Ingebrigtsen on Wed, 28 Oct 2020 12:02:06 +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:191886 Archived-At: > From: Lars Ingebrigtsen > Date: Wed, 28 Oct 2020 12:02:06 +0100 > Cc: 積丹尼 Dan Jacobson , > 44273@debbugs.gnu.org > > The argument that Tramp needs to parse "ls" output is valid, and that > "ls" is faster than `ls-lisp' is, too, but it's still backwards: Dired > should take a well-defined data structure and then render it according > to however the user wants. I think it would be useful to measure the difference in speed between ls-lisp and 'ls' the program on various platforms. For example, use benchmark-run to time (dired "foo") with some large directory 'foo', with and without ls-lisp loaded. (This should be done with a warm disk cache.) This should tell us how badly we need to speed up ls-lisp. Profiling ls-lisp could also be educational. For example, I see in the profile on my system that this loop: (let ((locale system-time-locale)) (if (not locale) (let ((vars '("LC_ALL" "LC_TIME" "LANG"))) (while (and vars (not (setq locale (getenv (car vars))))) (setq vars (cdr vars))))) is run for each file, which is definitely a waste of cycles. My measurements indicate that running this loop just once could speed up ls-lisp by 25%. > The data can come from `ls-lisp', but it could also come from "ls": We > just need to write a parser that parses the data. The data which comes from 'ls' can take many different formats, depending on the switches. Parsing each and every one of them sounds daunting.