From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Luc Teirlinck Newsgroups: gmane.emacs.devel Subject: Re: c-mode eats resources? Date: Sat, 18 Feb 2006 17:12:48 -0600 (CST) Message-ID: <200602182312.k1INCmL06749@raven.dms.auburn.edu> References: <200602182307.38095.pogonyshev@gmx.net> NNTP-Posting-Host: main.gmane.org X-Trace: sea.gmane.org 1140305103 16443 80.91.229.2 (18 Feb 2006 23:25:03 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 18 Feb 2006 23:25:03 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Feb 19 00:25:01 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1FAbRc-0002yj-Ci for ged-emacs-devel@m.gmane.org; Sun, 19 Feb 2006 00:24:55 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FAbRb-0000pE-QF for ged-emacs-devel@m.gmane.org; Sat, 18 Feb 2006 18:24:51 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FAbKG-0005hx-V9 for emacs-devel@gnu.org; Sat, 18 Feb 2006 18:17:17 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FAbKF-0005hW-8n for emacs-devel@gnu.org; Sat, 18 Feb 2006 18:17:16 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FAbKF-0005hR-1H for emacs-devel@gnu.org; Sat, 18 Feb 2006 18:17:15 -0500 Original-Received: from [131.204.53.104] (helo=manatee.dms.auburn.edu) by monty-python.gnu.org with esmtp (Exim 4.52) id 1FAbPu-00076k-Vo for emacs-devel@gnu.org; Sat, 18 Feb 2006 18:23:07 -0500 Original-Received: from raven.dms.auburn.edu (raven.dms.auburn.edu [131.204.53.29]) by manatee.dms.auburn.edu (8.13.3+Sun/8.13.3) with ESMTP id k1INH3l5004917; Sat, 18 Feb 2006 17:17:03 -0600 (CST) Original-Received: (from teirllm@localhost) by raven.dms.auburn.edu (8.11.7p1+Sun/8.11.7) id k1INCmL06749; Sat, 18 Feb 2006 17:12:48 -0600 (CST) X-Authentication-Warning: raven.dms.auburn.edu: teirllm set sender to teirllm@dms.auburn.edu using -f Original-To: pogonyshev@gmx.net In-reply-to: <200602182307.38095.pogonyshev@gmx.net> (message from Paul Pogonyshev on Sat, 18 Feb 2006 23:07:38 +0200) X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.0.1 (manatee.dms.auburn.edu [131.204.53.104]); Sat, 18 Feb 2006 17:17:03 -0600 (CST) 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:50727 Archived-At: Paul Pogonyshev wrote: Apparently, C mode constantly uses processor time even nothing is done in the buffer. E.g. if I open a C file in Emacs and go to a different desktop and start `top' there, it shows Emacs in the first few lines with 3--7% usage of CPU. This cannot be right. Can anybody reproduce this? Not really. After visiting a large file in C mode, I see some CPU time being used, probably to fontify the buffer, but it eventually stops after using only a very few seconds total time (four for alloc.c and maybe those four seconds were not even all used for C mode). Did you customize font-lock related stuff to use potentially inefficient regexps? You could do `C-h v' on both timer-list and timer-idle-list to see what you have running. Sincerely, Luc.