From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Newsgroups: gmane.emacs.help Subject: Re: How to Reduce Emacs Load Time Date: Sun, 31 Aug 2008 21:10:45 +0200 Message-ID: <87r685atl6.fsf@arcor.de> References: <18aba2b0-4fc7-4588-b69f-d9f46b264b03@q26g2000prq.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1220209887 9434 80.91.229.12 (31 Aug 2008 19:11:27 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 31 Aug 2008 19:11:27 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Aug 31 21:12:21 2008 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KZsLV-0000qE-62 for geh-help-gnu-emacs@m.gmane.org; Sun, 31 Aug 2008 21:12:21 +0200 Original-Received: from localhost ([127.0.0.1]:50240 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KZsKW-0001ca-Bu for geh-help-gnu-emacs@m.gmane.org; Sun, 31 Aug 2008 15:11:20 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KZsKF-0001cL-FD for help-gnu-emacs@gnu.org; Sun, 31 Aug 2008 15:11:03 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KZsKC-0001c9-TZ for help-gnu-emacs@gnu.org; Sun, 31 Aug 2008 15:11:02 -0400 Original-Received: from [199.232.76.173] (port=48842 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KZsKC-0001c6-Qj for help-gnu-emacs@gnu.org; Sun, 31 Aug 2008 15:11:00 -0400 Original-Received: from main.gmane.org ([80.91.229.2]:42276 helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KZsKC-0003FR-Gw for help-gnu-emacs@gnu.org; Sun, 31 Aug 2008 15:11:00 -0400 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1KZsK4-0007e5-Up for help-gnu-emacs@gnu.org; Sun, 31 Aug 2008 19:10:52 +0000 Original-Received: from dslc-082-082-181-220.pools.arcor-ip.net ([82.82.181.220]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 31 Aug 2008 19:10:52 +0000 Original-Received: from de_bb by dslc-082-082-181-220.pools.arcor-ip.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 31 Aug 2008 19:10:52 +0000 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: help-gnu-emacs@gnu.org Original-Lines: 45 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: dslc-082-082-181-220.pools.arcor-ip.net Mail-Copies-To: never User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/22.2.90 (gnu/linux) Cancel-Lock: sha1:DyOdRcncRdtZz4k4vpz8rC2wrJs= X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:57156 Archived-At: formido writes: > Thanks very much for that. In this case, by inspection I can tell > CEDET is a major culprit. Strange. I just benchmarked my CEDET init function and it takes about half a second. > Mind telling me how you load CEDET? I just used instruction they gave-- > you can see above what my *messages* looks like at init. Yes, CEDET sets up lots of stuff, but not much is actually loaded, so it shouldn't take much time. It consists of several packages, which were in fact separated in earlier releases, but are now bundled to make installation easier. This is why you see so many messages about different packages being set up. Don't worry too much about it. :-) I would strongly advise to use CEDET from CVS. There have been huge improvements since 1.0pre4, and Eric (Ludlam) is currently preparing a 1.0pre5 release based on the current CVS code. You can check out the CVS version from sourceforge: cvs -z3 -d:pserver:anonymous@cedet.cvs.sourceforge.net:/cvsroot/cedet co -P cedet I usually defer loading CEDET until I load up a source file. You can use something like this: (defun my-init-cedet () (interactive) (unless (fboundp 'cedet-version) (load-file (expand-file-name "~/cedet/common/cedet.el")) (semantic-load-enable-gaudy-code-helpers) ;; stickyfunc irritates me, so deactivate it (global-semantic-stickyfunc-mode -1) )) Then use e.g. (eval-after-load "cc-mode" '(my-init-cedet)) to load CEDET when CC-mode gets loaded. You can add this for several other modes if you want to. You can also call this init manually. -David