bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#44273: "total used in directory 19 available 5.2 GiB"


From: Eli Zaretskii
Subject: bug#44273: "total used in directory 19 available 5.2 GiB"
Date: Sat, 31 Oct 2020 11:44:05 +0200

> Date: Wed, 28 Oct 2020 17:28:45 +0200
> From: Eli Zaretskii <eliz@gnu.org>
> 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.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]