From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Paul Pogonyshev Newsgroups: gmane.emacs.devel Subject: Re: c-mode eats resources? Date: Sun, 19 Feb 2006 13:54:54 +0200 Message-ID: <200602191354.54632.pogonyshev@gmx.net> References: <200602182307.38095.pogonyshev@gmx.net> <200602190002.k1J02IJ07231@raven.dms.auburn.edu> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1140383407 21449 80.91.229.2 (19 Feb 2006 21:10:07 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 19 Feb 2006 21:10:07 +0000 (UTC) Cc: Luc Teirlinck Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Feb 19 22:10:06 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 1FAvoh-0005XL-4m for ged-emacs-devel@m.gmane.org; Sun, 19 Feb 2006 22:10:03 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FAvoR-0002sC-RL for ged-emacs-devel@m.gmane.org; Sun, 19 Feb 2006 16:09:47 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FAqxD-0000Ks-Q5 for emacs-devel@gnu.org; Sun, 19 Feb 2006 10:58:32 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FAqds-0005YA-N5 for emacs-devel@gnu.org; Sun, 19 Feb 2006 10:38:42 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FAqWs-0003zi-EI for emacs-devel@gnu.org; Sun, 19 Feb 2006 10:31:18 -0500 Original-Received: from [213.165.64.20] (helo=mail.gmx.net) by monty-python.gnu.org with smtp (Exim 4.52) id 1FAqch-0004nT-QN for emacs-devel@gnu.org; Sun, 19 Feb 2006 10:37:20 -0500 Original-Received: (qmail invoked by alias); 19 Feb 2006 15:31:16 -0000 Original-Received: from dialup.194.158.192.63.belpak.by (EHLO dialup.194.158.192.63.belpak.by) [194.158.192.63] by mail.gmx.net (mp026) with SMTP; 19 Feb 2006 16:31:16 +0100 X-Authenticated: #16844820 Original-To: emacs-devel@gnu.org User-Agent: KMail/1.7.2 In-Reply-To: <200602190002.k1J02IJ07231@raven.dms.auburn.edu> Content-Disposition: inline X-Y-GMX-Trusted: 0 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:50751 Archived-At: Luc Teirlinck wrote: > >From my previous reply: > > 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). > > Well, that is four seconds total _CPU_ time, for visiting alloc.c > using `emacs -q' on a 1.7GHZ dual Xeon. Emacs does not run _all_ of > the time, although a lot, takes a maximum of 3.something CPU and > finishes in about 3 minutes _clock_ time. If your machine would be a > lot slower than mine and/or if your file is a lot larger than alloc.c, > it could last for much longer than 3 minutes (although your maximum > CPU usage is about the double of mine, which should halve the clock > time). > > So the questions are: > > Do you see this in `emacs -q'? > Do you see it regardless of file size? OK, that's probably it. I just didn't expect that it would run for so long. Just checked now, it shows the similar pattern and stops after some minutes. Sorry for the noise. Paul