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: Sat, 31 Oct 2020 11:44:05 +0200 Message-ID: <83imaqhgre.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> <83o8kmcqtu.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="15047"; mail-complaints-to="usenet@ciao.gmane.io" Cc: mattiase@acm.org, jidanni@jidanni.org, 44273@debbugs.gnu.org To: larsi@gnus.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Oct 31 10:45: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 1kYnRe-0003kc-Iy for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 31 Oct 2020 10:45:10 +0100 Original-Received: from localhost ([::1]:47570 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kYnRd-0007am-KJ for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 31 Oct 2020 05:45:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:45224) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kYnRW-0007aT-Er for bug-gnu-emacs@gnu.org; Sat, 31 Oct 2020 05:45:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:49005) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kYnRW-00078G-3r for bug-gnu-emacs@gnu.org; Sat, 31 Oct 2020 05:45:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kYnRW-0005hg-0G for bug-gnu-emacs@gnu.org; Sat, 31 Oct 2020 05:45:02 -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, 31 Oct 2020 09:45: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.160413746921866 (code B ref 44273); Sat, 31 Oct 2020 09:45:01 +0000 Original-Received: (at 44273) by debbugs.gnu.org; 31 Oct 2020 09:44:29 +0000 Original-Received: from localhost ([127.0.0.1]:60551 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kYnQy-0005gc-QV for submit@debbugs.gnu.org; Sat, 31 Oct 2020 05:44:28 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:44946) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kYnQw-0005gM-NU for 44273@debbugs.gnu.org; Sat, 31 Oct 2020 05:44:27 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:35979) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kYnQr-0006se-9B; Sat, 31 Oct 2020 05:44:21 -0400 Original-Received: from [176.228.60.248] (port=2721 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1kYnQq-0005tY-Qf; Sat, 31 Oct 2020 05:44:21 -0400 In-Reply-To: <83o8kmcqtu.fsf@gnu.org> (message from Eli Zaretskii on Wed, 28 Oct 2020 17:28:45 +0200) 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:192259 Archived-At: > Date: Wed, 28 Oct 2020 17:28:45 +0200 > From: Eli Zaretskii > Cc: mattiase@acm.org, jidanni@jidanni.org, 44273@debbugs.gnu.org > > 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%. I've now implemented that optimization on the master branch.