[Top][All Lists]

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

Re: Emacs 23.0 is much slower starting than Emacs 22.3

From: David De La Harpe Golden
Subject: Re: Emacs 23.0 is much slower starting than Emacs 22.3
Date: Sat, 25 Oct 2008 04:38:00 +0100
User-agent: Mozilla-Thunderbird (X11/20081018)

Richard M. Stallman wrote:

Does `normal-mode' look for the that file more than once in a given

AFAIK it shouldn't in a given call. Across calls caching the
info would be wrong* since a user might happen to make a
.dir-settings.el in the interim. Anyway, as per recent previous mail with patch [1] the issue was with _how_ the filename was being looked for in the directory - ask for every filename in the directory and iterate through checking if one regex-matches (directory-files, slower) or ask if the directory has a file called filename in it (file-exists-p, faster).

* well, could have a smart cache with inotify (or
other-oses-equivalent). http://en.wikipedia.org/wiki/Inotify
"function is essentially an extension to filesystems to notice changes
to the filesystem, and report those changes to applications.",
... and/or a batch interface that signals that a bunch of files are
about to be opened in one go and it's okay to cache for a bit...
... but maybe not worth the bother in this instance...

[1] Message-ID: <address@hidden>

reply via email to

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