[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: emacs trying to load too many files at startup
From: |
Dan Nicolaescu |
Subject: |
Re: emacs trying to load too many files at startup |
Date: |
Sat, 19 Nov 2005 12:17:35 -0800 |
Eli Zaretskii <address@hidden> writes:
> > Cc: address@hidden
> > From: Dan Nicolaescu <address@hidden>
> > I set a breakpoint on Fexpand_file_name instead and that lead to:
> >
> > (gdb) xbacktrace
> > "locate-file-internal"
> > "locate-file"
> > "mapcar"
> > "command-line"
> > "normal-top-level"
> >
> >
> > And that seems to indicate this code:
> >
> > ;; Convert preloaded file names to absolute.
> > (setq load-history
> > (mapcar (lambda (elt)
> > (if (and (stringp (car elt))
> > (not (file-name-absolute-p (car elt))))
> > (cons (locate-file (car elt) load-path
> > load-suffixes)
> > (cdr elt))
> > elt))
> > load-history))
>
> Do we know that this code alone is responsible for those 2000 extra
> calls to stat64? Is it possible that there's some other code besides
> Fexpand_file_name that causes some of those calls?
I'm reasonable sure. 4 versions of each file are stat-ed: .el .elc
.el.gz .elc.gz and each is looked up in a few directories in the
load-path...
Re: emacs trying to load too many files at startup, Luc Teirlinck, 2005/11/19
Re: emacs trying to load too many files at startup, Stefan Monnier, 2005/11/20