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:34:54 +0200 Message-ID: <83mu06cqjl.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> <83DA3F8B-E525-43F6-8A72-A5AF6C0EEA38@acm.org> <87pn52tx05.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="38395"; 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:36:18 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 1kXnUn-0009pj-W5 for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 28 Oct 2020 16:36:17 +0100 Original-Received: from localhost ([::1]:47164 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kXnUm-0002Mi-U9 for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 28 Oct 2020 11:36:16 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:49336) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kXnUY-0002Kw-7y for bug-gnu-emacs@gnu.org; Wed, 28 Oct 2020 11:36:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:38634) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kXnUX-0000SQ-SE for bug-gnu-emacs@gnu.org; Wed, 28 Oct 2020 11:36:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kXnUX-0002xa-Ny for bug-gnu-emacs@gnu.org; Wed, 28 Oct 2020 11:36: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:36: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.160389930911308 (code B ref 44273); Wed, 28 Oct 2020 15:36:01 +0000 Original-Received: (at 44273) by debbugs.gnu.org; 28 Oct 2020 15:35:09 +0000 Original-Received: from localhost ([127.0.0.1]:50180 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kXnTh-0002wK-H2 for submit@debbugs.gnu.org; Wed, 28 Oct 2020 11:35:09 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:49016) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kXnTf-0002w1-W3 for 44273@debbugs.gnu.org; Wed, 28 Oct 2020 11:35:08 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:46478) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kXnTa-0000Du-FE; Wed, 28 Oct 2020 11:35:02 -0400 Original-Received: from [176.228.60.248] (port=3941 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1kXnTU-0002Lr-Ip; Wed, 28 Oct 2020 11:35:01 -0400 In-Reply-To: <87pn52tx05.fsf@gnus.org> (message from Lars Ingebrigtsen on Wed, 28 Oct 2020 12:23:22 +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:191887 Archived-At: > From: Lars Ingebrigtsen > Date: Wed, 28 Oct 2020 12:23:22 +0100 > Cc: 積丹尼 Dan Jacobson , > 44273@debbugs.gnu.org > > Mattias Engdegård writes: > > > Definitely, and if it is faster to fork another process and parse its > > output with slow regexps in Emacs to do the job of what ordinarily > > just takes a few syscalls, then we aren't doing our job properly. It's > > not hard to read directories efficiently. > > True. If `ls-lisp' (or something similar) isn't fast enough, then it > should be pretty easy to add a C-level function for efficient directory > reading. Are you sure it's reading the directory that takes the lion's share of the time? Maybe it's inserting the file information, one file at a time, into a buffer? Or something else? That's why I suggested to profile and benchmark this thing. > (But we'd still need the parser for Tramp.) Tramp could always use what it does now, or use ls-lisp, or something else.