all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
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 01:13:42 +0100	[thread overview]
Message-ID: <49011336.10307@harpegolden.net> (raw)
In-Reply-To: <e01d8a50810231612j6c1c40fkb3ea2573e6ae6ea1@mail.gmail.com>

Lennart Borgman wrote:


> Based on that observation system calls other than reading the file
> contents looks most suspicious to me. In `after-find-file' (which is
> called at the end of `find-file-noselect-1') there are some calls to
> `file-attributes'. Are they perhaps involved?

Bah, my bad, somehow missed that inside the if statement the first pass
through, duh..  Yes, it is mostly "after-find-file", but the call to 
"normal-mode" is the killer, not the file attributes calls in 
"after-find-file" itself! - [1]

"normal-mode" bulk is is split into "set-auto-mode" and 
"hack-local-variables" fairly evenly (roughly 11:9 as below)

Most of the latter is in "hack-project-variables", and most of /that/ is
"project-find-settings-file", and most of that is the 
"locate-dominating-file" walk.
+++ Wasn't the project functionality (.dir-settings.el variable 
settings) new in emacs23? That may well account for emacs22->emacs23 ?
For every file loaded, it's redoing that...

+++ Which leaves set-auto-mode...


[1]
find-file-noselect         180         3.3577020000  0.0186539000
find-file-noselect-1       180         2.6044840000  0.0144693555
after-find-file            180         2.2709340000  0.0126163000
normal-mode                180         2.0908219999  0.0116156777
set-auto-mode              180         1.141377      0.0063409833
hack-local-variables       180         0.9163369999  0.0050907611
hack-project-variables     180         0.8940040000  0.0049666888
project-find-settings-file 180         0.8922979999  0.0049572111
locate-dominating-file     180         0.890476      0.0049470888
insert-file-contents       361         0.3547089999  0.0009825734
run-hooks                  2406        0.2279640000  9.474...e-05
re-search-forward          1453        0.1557330000  0.0001071803
vc-find-file-hook          180         0.1458039999  0.0008100222
font-lock-mode             722         0.0745249999  0.0001032202
file-attributes            1476        0.0304240000  2.061...e-05
make-local-variable        10477       0.0182779999  1.744...e-06
file-name-nondirectory     7843        0.0176319999  2.248...e-06
abbreviate-file-name       730         0.0165959999  2.273...e-05
search-forward             1811        0.0137990000  7.619...e-06
file-exists-p              756         0.0132379999  1.751...e-05
fundamental-mode           180         0.012926      7.181...e-05
file-name-directory       4091        0.0107010000  2.615...e-06










  parent reply	other threads:[~2008-10-24  0:13 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
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 [this message]
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=49011336.10307@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.