From: David De La Harpe Golden <david@harpegolden.net>
To: Alan Mackenzie <acm@muc.de>
Cc: Stefan Monnier <monnier@iro.umontreal.ca>, emacs-devel@gnu.org
Subject: Re: Emacs 23.0 is much slower starting than Emacs 22.3
Date: Thu, 23 Oct 2008 17:57:29 +0100 [thread overview]
Message-ID: <4900ACF9.7060501@harpegolden.net> (raw)
In-Reply-To: <20081023090908.GB2666@muc.de>
Alan Mackenzie wrote:
> Hi, David!
>
> On Thu, Oct 23, 2008 at 07:53:14AM +0100, David De La Harpe Golden wrote:
>> Alan Mackenzie wrote:
>
>>> OK, 100 random files.el. How big were they?
>>>
>
>> Probably fairly small. I went back and did the 180 .c files from the
>> emacs source tree, totalling 9.2MB, and that took 6-7 secs (Which was a
>> bit slower than I expected!)
>
> OK. Was that Emacs 22 or 23? Presumably 23. Any chance you could time
> it using the other Emacs?
>
Yes, now using "time emacs -f kill-emacs" (warm cache this time, not
rebooting between runs...)
emacs run real user sys
22 1 4.880 3.960 0.180
22 2 4.589 3.992 0.136
22 3 4.764 4.076 0.176
23 4 7.275 6.636 0.120
23 5 6.958 6.276 0.188
23 6 6.898 6.268 0.132
So yeah, 23 is slower.
I tried just putting 180 find-file-noselects in a file and loading it
i.e.
$ find /usr/local/src/emacs -name '*.c' -printf \
'(find-file-noselect "%p")\n' >fftest.el
$ emacs --batch --eval '(byte-compile-file "fftest.el")'
$ time emacs -l fftest.elc -f kill-emacs
emacs run real user sys
22 1 4.523 3.888 0.136
22 2 4.744 4.172 0.112
22 3 4.457 3.836 0.176
23 4 7.177 6.532 0.152
23 5 7.198 6.544 0.160
23 6 7.159 6.472 0.220
So FWIW probably the problem is in the find-file call path rather than
anything desktop.el is doing in particular (though there IS a kinda
dubious mapc in desktop-create-buffer, but it likely doesn't really bite
until rather larger file counts again (triangular progression in file
count)).
next prev parent reply other threads:[~2008-10-23 16:57 UTC|newest]
Thread overview: 54+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-10-22 9:11 Emacs 23.0 is much slower starting than Emacs 22.3 Alan Mackenzie
2008-10-22 13:23 ` Stefan Monnier
2008-10-22 13:55 ` John covici
2008-10-22 15:14 ` Alan Mackenzie
2008-10-22 16:46 ` David De La Harpe Golden
2008-10-22 21:12 ` Alan Mackenzie
2008-10-22 21:19 ` Eli Zaretskii
2008-10-23 9:21 ` Alan Mackenzie
2008-10-23 21:53 ` Eli Zaretskii
2008-10-23 6:53 ` David De La Harpe Golden
2008-10-23 9:09 ` Alan Mackenzie
2008-10-23 16:57 ` David De La Harpe Golden [this message]
2008-10-23 21:52 ` Eli Zaretskii
2008-10-23 22:33 ` Lennart Borgman
2008-10-24 9:26 ` Eli Zaretskii
2008-10-23 22:47 ` David De La Harpe Golden
2008-10-23 23:12 ` Lennart Borgman
2008-10-23 23:54 ` Lennart Borgman
2008-10-24 9:51 ` Eli Zaretskii
2008-10-24 13:58 ` David De La Harpe Golden
2008-10-24 15:44 ` Lennart Borgman
2008-10-24 16:24 ` Chong Yidong
2008-10-24 16:48 ` Eli Zaretskii
2008-10-24 16:45 ` David De La Harpe Golden
2008-10-24 16:53 ` Eli Zaretskii
2008-10-25 2:01 ` Richard M. Stallman
2008-10-25 3:38 ` David De La Harpe Golden
2008-10-24 0:13 ` David De La Harpe Golden
2008-10-24 0:59 ` Lennart Borgman
2008-10-24 1:58 ` David De La Harpe Golden
2008-10-24 1:44 ` David De La Harpe Golden
2008-10-24 9:57 ` Eli Zaretskii
2008-10-24 15:00 ` David De La Harpe Golden
2008-10-24 11:21 ` Alan Mackenzie
2008-10-24 14:32 ` David De La Harpe Golden
2008-10-24 19:28 ` Alan Mackenzie
2008-10-24 19:35 ` David De La Harpe Golden
2008-10-24 4:13 ` Stefan Monnier
2008-10-24 15:19 ` David De La Harpe Golden
2008-10-24 18:42 ` Stefan Monnier
2008-10-24 19:36 ` David De La Harpe Golden
2008-10-24 23:44 ` David De La Harpe Golden
2008-10-25 15:19 ` Stefan Monnier
2008-10-25 17:02 ` David De La Harpe Golden
2008-10-24 9:52 ` Eli Zaretskii
2008-10-24 9:35 ` Eli Zaretskii
2008-10-24 9:30 ` Eli Zaretskii
2008-10-23 1:29 ` Miles Bader
2008-10-23 9:06 ` Alan Mackenzie
2008-10-22 18:26 ` Eli Zaretskii
2008-10-22 21:40 ` Alan Mackenzie
2008-10-22 22:09 ` Eli Zaretskii
2008-10-22 21:02 ` Richard M. Stallman
2008-10-24 11:59 ` Emacs 23.0 is much slower than Emacs 22.3. Maybe it's the garbage collector Alan Mackenzie
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=4900ACF9.7060501@harpegolden.net \
--to=david@harpegolden.net \
--cc=acm@muc.de \
--cc=emacs-devel@gnu.org \
--cc=monnier@iro.umontreal.ca \
/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.