From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Xah Lee Newsgroups: gmane.emacs.help Subject: Re: Emacs terribly slow Date: Thu, 6 Aug 2009 19:06:02 -0700 (PDT) Organization: http://groups.google.com Message-ID: <8049654a-2737-461c-b13c-1e559f6ddb5d@d36g2000prb.googlegroups.com> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1249621850 23700 80.91.229.12 (7 Aug 2009 05:10:50 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 7 Aug 2009 05:10:50 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Aug 07 07:10:43 2009 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 1MZHj1-0005oV-BJ for geh-help-gnu-emacs@m.gmane.org; Fri, 07 Aug 2009 07:10:43 +0200 Original-Received: from localhost ([127.0.0.1]:42427 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MZHj0-00007x-GM for geh-help-gnu-emacs@m.gmane.org; Fri, 07 Aug 2009 01:10:42 -0400 Original-Path: news.stanford.edu!newsfeed.stanford.edu!postnews.google.com!d36g2000prb.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help,comp.emacs Original-Lines: 63 Original-NNTP-Posting-Host: 76.102.12.87 Original-X-Trace: posting.google.com 1249610762 29024 127.0.0.1 (7 Aug 2009 02:06:02 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Fri, 7 Aug 2009 02:06:02 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: d36g2000prb.googlegroups.com; posting-host=76.102.12.87; posting-account=bRPKjQoAAACxZsR8_VPXCX27T2YcsyMA User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US) AppleWebKit/530.5 (KHTML, like Gecko) Chrome/2.0.172.39 Safari/530.5, gzip(gfe), gzip(gfe) Original-Xref: news.stanford.edu gnu.emacs.help:171727 comp.emacs:98543 X-Mailman-Approved-At: Fri, 07 Aug 2009 01:06:48 -0400 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:66915 Archived-At: On Aug 5, 11:46 pm, Maindoor 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 wrote: > > From: Lennart Borgman > Subject: Re: Emacs terribly slow > To: "Maindoor" > Cc: help-gnu-em...@gnu.org > Date: Tuesday, August 4, 2009, 9:51 PM > > On Tue, Aug 4, 2009 at 7:51 AM, Maindoor 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-the= me > > 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 brow= se > > 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 =E2=88=91 http://xahlee.org/ =E2=98=84