From: Eli Zaretskii <eliz@gnu.org>
To: Lin Sun <sunlin7.mail@gmail.com>
Cc: acorallo@gnu.org, 41646@debbugs.gnu.org,
monnier@iro.umontreal.ca, stefankangas@gmail.com
Subject: bug#41646: Startup in Windows is very slow when load-path contains many
Date: Fri, 01 Nov 2024 21:58:48 +0200 [thread overview]
Message-ID: <86wmhmzpxj.fsf@gnu.org> (raw)
In-Reply-To: <CABCREdrPBhF8FbsmYc0g=n97OWyg1e=sLUDnfbyyfdZDGTOG0Q@mail.gmail.com> (message from Lin Sun on Fri, 1 Nov 2024 18:15:23 +0000)
> From: Lin Sun <sunlin7.mail@gmail.com>
> Date: Fri, 1 Nov 2024 18:15:23 +0000
> Cc: monnier@iro.umontreal.ca, stefankangas@gmail.com, acorallo@gnu.org,
> 41646@debbugs.gnu.org, monnier@gnu.org
>
> How about this: I write some windows specific code only available on
> the windows to cache the files for the load-path. It will NOT affect
> other platforms. Like a flag "load-path-cache-expired 60" (nil/t) for
> windows users who won't change path/files a lot, then Emacs can cache
> the files list for path entries for 60 seconds. As I pasted, with the
> files cache, it can reduce the startup time from ~16s to ~5s, and also
> improve the running time performance. That will save a lot of emacs
> windows users.
I'd like us first to have a good understanding of the problems, their
aspects, and the goals of the proposed changes. I'd also would like
to have some agreed-upon timing of searching load-path, including its
dependence on the number of directories in load-path, and the relative
part of the startup that this particular aspect explains. (Are you
really saying that it takes Emacs 16 sec to search 300 directories for
300 files?) Only then we will have enough information to discuss
potential solutions and their effects on the startup time.
In general, a Windows-only feature is something I'd prefer not to
have, because quite a few users use Emacs on both Windows and
GNU/Linux, so having OS specific features should be avoided. But it
can be acceptable if no better alternative exists. But this is
something we should talk about much later, not now.
next prev parent reply other threads:[~2024-11-01 19:58 UTC|newest]
Thread overview: 28+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <CABCREdrcJL1xfhB4NFW-WWRDd2ucMj_rVRTGZw1FqLHJHJFaQg@mail.gmail.com>
[not found] ` <86jzedy84g.fsf@gnu.org>
[not found] ` <CABCREdq4JXaJbQwsS9=MWEzYnOAr2CZCCvg6pjjyNEgZO-MZrg@mail.gmail.com>
[not found] ` <CABCREdosvZSGgwrU8bvVtCzK+P0aX3ACCeTDqQXyg+6xhFXzkw@mail.gmail.com>
[not found] ` <86r08luqsq.fsf@gnu.org>
[not found] ` <CABCREdqtUisaCsV4=-nc7wNJ3P5Z_43yPXrYH1ZwWPGOQuptsw@mail.gmail.com>
[not found] ` <86frp1unvu.fsf@gnu.org>
[not found] ` <CABCREdp2Ug_wgnj=w=bS-XiYESp6D4Cr4aE2G2wBHTwAttZ=9Q@mail.gmail.com>
[not found] ` <86y12stv24.fsf@gnu.org>
[not found] ` <CABCREdogicz4OKd0ORAtD_u2Q9HdLSt+DFs9pTqUQ1gcWGFdYg@mail.gmail.com>
2024-10-13 9:50 ` bug#41646: Startup in Windows is very slow when load-path contains many Stefan Kangas
2024-10-13 10:43 ` Eli Zaretskii
2024-10-13 14:47 ` Lin Sun
2024-10-13 15:24 ` Eli Zaretskii
2024-10-13 15:43 ` Lin Sun
2024-10-13 15:56 ` Eli Zaretskii
2024-10-13 16:03 ` Lin Sun
2024-10-13 16:39 ` Eli Zaretskii
2024-10-16 7:51 ` Lin Sun
2024-10-21 4:09 ` Lin Sun
2024-10-21 14:34 ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-10-21 17:11 ` Lin Sun
2024-10-31 15:04 ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-11-01 7:18 ` Lin Sun
2024-11-01 7:49 ` Lin Sun
2024-11-01 8:17 ` Eli Zaretskii
2024-11-01 13:11 ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-11-01 16:56 ` Lin Sun
2024-11-01 17:08 ` Eli Zaretskii
2024-11-01 17:58 ` Lin Sun
2024-11-01 18:15 ` Lin Sun
2024-11-01 19:58 ` Eli Zaretskii [this message]
2024-11-01 19:49 ` Eli Zaretskii
2024-11-01 19:17 ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-11-01 19:30 ` Lin Sun
2024-11-01 19:42 ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-10-21 19:53 ` Lin Sun
2024-10-13 15:51 ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=86wmhmzpxj.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=41646@debbugs.gnu.org \
--cc=acorallo@gnu.org \
--cc=monnier@iro.umontreal.ca \
--cc=stefankangas@gmail.com \
--cc=sunlin7.mail@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.