From: David De La Harpe Golden <david@harpegolden.net>
To: Lennart Borgman <lennart.borgman@gmail.com>
Cc: acm@muc.de, Eli Zaretskii <eliz@gnu.org>,
monnier@iro.umontreal.ca, emacs-devel@gnu.org
Subject: Re: Emacs 23.0 is much slower starting than Emacs 22.3
Date: Fri, 24 Oct 2008 17:45:09 +0100 [thread overview]
Message-ID: <4901FB95.8080703@harpegolden.net> (raw)
In-Reply-To: <e01d8a50810240844m2e4fb7d4qc744b276d1849b20@mail.gmail.com>
Lennart Borgman wrote:
> On Fri, Oct 24, 2008 at 11:51 AM, Eli Zaretskii <eliz@gnu.org> wrote:
>>> Date: Fri, 24 Oct 2008 01:54:06 +0200
>>> From: "Lennart Borgman" <lennart.borgman@gmail.com>
>>> Cc: "Eli Zaretskii" <eliz@gnu.org>, acm@muc.de, monnier@iro.umontreal.ca,
>>> emacs-devel@gnu.org
>>>
>>> Timing insert-file-contents-literally:
>>> Elapsed time: 8.375000s (0.187000s in 1 GCs)
>>> Timing insert-file-contents:
>>> Elapsed time: 14.297000s (0.312000s in 2 GCs)
>>> Timing file-attributes:
>>> Elapsed time: 5.890000s (0.156000s in 1 GCs)
>>> Timing file-exists-p:
>>> Elapsed time: 6.672000s (0.125000s in 1 GCs)
>>> Timing file-modes:
>>> Elapsed time: 5.609000s (0.188000s in 1 GCs)
>> Thanks, but what does this mean? What is behind a line such as
>
> Here is the code again, a little bit enhanced:
FWIW, ran your code on my debian/unstable amd64 system using linux
kernel 2.6.26 (though using /usr/local/src/emacs/lisp rather than
c:«blah» for obvious reasons), results below (no gc or function stubbing
tweaks). The file attributes are a w32-specific problem I guess - are
(a) about 40x faster than your w32 emacs23 and (b) similar between
emacs22/23 (actually slightly faster with 23 in the test runs, but that
could just be the GC and general noise).
OTOH the normal-mode call is noticeably slower for emacs23 (though
not as pronounced as on your w32 - of course, the emacs23 normal-mode
code path includes more file attribute usage due to the .dir.settings.el
stuff...)
Emacs 22:
======================= After cache warm up
Timing insert-file-contents-literally:
Elapsed time: 0.403781s (0.031159s in 1 GCs)
Elapsed time: 0.433654s (0.061884s in 2 GCs)
Timing insert-file-contents:
Elapsed time: 1.073601s (0.127081s in 4 GCs)
Elapsed time: 1.066970s (0.125150s in 4 GCs)
Timing file-attributes:
Elapsed time: 0.099218s (0.031007s in 1 GCs)
Elapsed time: 0.131247s (0.062046s in 2 GCs)
Timing file-exists-p:
Elapsed time: 0.132959s (0.062106s in 2 GCs)
Elapsed time: 0.101442s (0.031064s in 1 GCs)
Timing file-modes:
Elapsed time: 0.133818s (0.062778s in 2 GCs)
Elapsed time: 0.101579s (0.031122s in 1 GCs)
Timing normal-mode:
Elapsed time: 0.176703s (0.062539s in 2 GCs)
Elapsed time: 0.257191s (0.065307s in 2 GCs)
Ready
Emacs 23:
======================= After cache warm up
Timing insert-file-contents-literally:
Elapsed time: 0.296811s (0.052762s in 1 GCs)
Elapsed time: 0.293286s (0.051887s in 1 GCs)
Timing insert-file-contents:
Elapsed time: 1.183911s (0.160524s in 3 GCs)
Elapsed time: 1.179618s (0.161070s in 3 GCs)
Timing file-attributes:
Elapsed time: 0.092713s (0.052083s in 1 GCs)
Elapsed time: 0.092785s (0.051292s in 1 GCs)
Timing file-exists-p:
Elapsed time: 0.094927s (0.051904s in 1 GCs)
Elapsed time: 0.095253s (0.051449s in 1 GCs)
Timing file-modes:
Elapsed time: 0.096032s (0.052696s in 1 GCs)
Elapsed time: 0.094715s (0.051999s in 1 GCs)
Timing normal-mode:
Elapsed time: 0.245259s (0.104135s in 2 GCs)
Elapsed time: 0.390639s (0.107556s in 2 GCs)
Ready
next prev parent reply other threads:[~2008-10-24 16:45 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
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 [this message]
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=4901FB95.8080703@harpegolden.net \
--to=david@harpegolden.net \
--cc=acm@muc.de \
--cc=eliz@gnu.org \
--cc=emacs-devel@gnu.org \
--cc=lennart.borgman@gmail.com \
--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.