help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Emacs terribly slow


From: Xah Lee
Subject: Re: Emacs terribly slow
Date: Thu, 6 Aug 2009 19:06:02 -0700 (PDT)
User-agent: G2/1.0

On Aug 5, 11:46 pm, Maindoor <sanjeevfi...@yahoo.com> wrote:
> Yes. But its not much and they don't make a lot of difference.
>
> Is it possible to tell emacs not to load particular set of modules like
> i don't ever want to load viper. things like that..so that it becomes
> sleek and fast.
>
> Regards,
> Maindoor.
>
> --- On Tue, 8/4/09, Lennart Borgman <lennart.borg...@gmail.com> wrote:
>
> From: Lennart Borgman <lennart.borg...@gmail.com>
> Subject: Re: Emacs terribly slow
> To: "Maindoor" <sanjeevfi...@yahoo.com>
> Cc: help-gnu-em...@gnu.org
> Date: Tuesday, August 4, 2009, 9:51 PM
>
> On Tue, Aug 4, 2009 at 7:51 AM, Maindoor<sanjeevfi...@yahoo.com> wrote:
> > Hi,
> >     I'm using emacs 23.0.91.1 and i load a few files using load-file
> >     in my .emacs file like session, hide-mode-line, uniquify, color-theme
> >     bs.el etc. but lately its become very very slow. Emacs it seems is
> >     panting and running out of breath when i open a file or when I browse
> >     around the file. Is there any way to optimize for speed ?
>
> Hi Maindoor,
>
> Did you try removing stuff from your .emacs?

maindoor,

make sure the slowness you seen is not due to your .emacs or something
else.

Start emacs from the command like like this: emacs -Q

measure the time, compare it to your normal emacs launching. If using
emacs -Q is much faster, then, we know the problem is probably
your .emacs.

Now, the next step is to determine if there is something weired other
than loading the customization you have in your .emacs. For example,
some syntax error, or something in your .emacs that causes network
access, will drag your emacs startup time down. So, i'd check if
there's anything like that. How many lines is your .emacs anyway?

i have few thousand lines in my .emacs, and most calling out packages
that are not even compiled... generally speaking, piling things in
your .emacs shouldn't be a problem on today's machines. (is your
machine very old, by chance?) But in any case, when you sure you don't
have anything weird, the next step is to reduce loading uncessary
packages, or have them compiled, or use autoload instead of load or
require so that they get loaded only when you actually use that
feature. Recently someone posted about how to opitize this last
step... and am sure emacs wiki has a lot info.

  Xah
∑ http://xahlee.org/

reply via email to

[Prev in Thread] Current Thread [Next in Thread]