From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Satya Mishra Newsgroups: gmane.emacs.help Subject: Re: Emacs using too much CPU Date: 18 May 2004 12:09:12 -0600 Organization: National Semiconductor, Santa Clara Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1084906419 26844 80.91.224.253 (18 May 2004 18:53:39 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 18 May 2004 18:53:39 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue May 18 20:53:27 2004 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1BQ9VQ-0005OY-00 for ; Tue, 18 May 2004 20:40:00 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1BQ9Nd-00016Z-HO for geh-help-gnu-emacs@m.gmane.org; Tue, 18 May 2004 14:31:57 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!logbridge.uoregon.edu!nntp-server.caltech.edu!attla2!attla1!ip.att.net!usenet.nsc.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 22 Original-NNTP-Posting-Host: quandary.nsc.com Original-X-Trace: usenet.nsc.com 1084903785 26528 192.137.59.70 (18 May 2004 18:09:45 GMT) Original-X-Complaints-To: usenet@usenet.nsc.com Original-NNTP-Posting-Date: Tue, 18 May 2004 18:09:45 +0000 (UTC) User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 Original-Xref: shelby.stanford.edu gnu.emacs.help:123271 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.4 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:18566 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:18566 >>>>> "Stefan" == Stefan Monnier writes: >> I found that the auto-save-timeout was at 30 seconds. So CPU >> usage was going up every 30 seconds. Hopefully that takes care >> of most problems. Stefan> auto-save shouldn't use much CPU if any (it's run rarely Stefan> for one, and even when it's run it should be quick, and Stefan> even if it takes a non-negligible amount of time (say for Stefan> a very large buffer, most of that time is spent waiting Stefan> for the disk rather than using the CPU). I think auto-save itself doesn't take that much time. But auto-save also triggers gc, from the documentation of auto-save-timeout. I am guessing that takes some CPU. Again my understanding is really very limited. But these changes seem to have helped getting emacs to be more responsive. Satya -- Remove XXX and YYY to get my address