From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dan Nicolaescu Newsgroups: gmane.emacs.devel Subject: Re: emacs trying to load too many files at startup Date: Sat, 19 Nov 2005 12:17:35 -0800 Message-ID: <200511192017.jAJKHbTp000578@scanner2.ics.uci.edu> References: <200511191831.jAJIVJTp026147@scanner2.ics.uci.edu> <200511191950.jAJJo0Tp029512@scanner2.ics.uci.edu> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; format=flowed X-Trace: sea.gmane.org 1132431650 18400 80.91.229.2 (19 Nov 2005 20:20:50 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 19 Nov 2005 20:20:50 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Nov 19 21:20:49 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EdZBt-0002SY-8c for ged-emacs-devel@m.gmane.org; Sat, 19 Nov 2005 21:20:05 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EdZBr-00007O-2u for ged-emacs-devel@m.gmane.org; Sat, 19 Nov 2005 15:20:03 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1EdZBa-00007J-HS for emacs-devel@gnu.org; Sat, 19 Nov 2005 15:19:46 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1EdZBZ-000077-2F for emacs-devel@gnu.org; Sat, 19 Nov 2005 15:19:46 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EdZBY-000074-Tt for emacs-devel@gnu.org; Sat, 19 Nov 2005 15:19:45 -0500 Original-Received: from [128.195.1.36] (helo=scanner2.ics.uci.edu) by monty-python.gnu.org with esmtp (Exim 4.34) id 1EdZBY-0001nA-1g; Sat, 19 Nov 2005 15:19:44 -0500 Original-Received: from vino.ics.uci.edu (dann@vino.ics.uci.edu [128.195.11.198]) by scanner2.ics.uci.edu (8.12.10/8.12.10) with ESMTP id jAJKHbTp000578; Sat, 19 Nov 2005 12:17:37 -0800 (PST) Original-To: Eli Zaretskii In-Reply-To: (Eli Zaretskii's message of "Sat, 19 Nov 2005 22:07:48 +0200") Original-Lines: 36 X-ICS-MailScanner: Found to be clean X-ICS-MailScanner-SpamCheck: not spam (whitelisted), SpamAssassin (score=-100, required 5, USER_IN_WHITELIST) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:46280 Archived-At: Eli Zaretskii writes: > > Cc: emacs-devel@gnu.org > > From: Dan Nicolaescu > > 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...