all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Luc Teirlinck <teirllm@dms.auburn.edu>
Cc: emacs-devel@gnu.org
Subject: Re: c-mode eats resources?
Date: Sat, 18 Feb 2006 17:12:48 -0600 (CST)	[thread overview]
Message-ID: <200602182312.k1INCmL06749@raven.dms.auburn.edu> (raw)
In-Reply-To: <200602182307.38095.pogonyshev@gmx.net> (message from Paul Pogonyshev on Sat, 18 Feb 2006 23:07:38 +0200)

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.

  parent reply	other threads:[~2006-02-18 23:12 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-02-18 21:07 c-mode eats resources? Paul Pogonyshev
2006-02-18 22:40 ` Chong Yidong
2006-02-18 23:12   ` Paul Pogonyshev
2006-02-19 11:12     ` martin rudalics
2006-02-18 22:47 ` Lennart Borgman
2006-02-18 23:12 ` Luc Teirlinck [this message]
2006-02-19 17:18   ` Juri Linkov
2006-02-19 23:31     ` Andreas Schwab
2006-02-20  8:18     ` Kim F. Storm
2006-02-20 19:33       ` Juri Linkov
2006-02-18 23:17 ` Luc Teirlinck
2006-02-19  0:02 ` Luc Teirlinck
2006-02-19 11:54   ` Paul Pogonyshev
2006-02-19  0:05 ` Luc Teirlinck
2006-02-19  1:00 ` Luc Teirlinck
2006-02-19 15:17 ` Stefan Monnier
2006-02-19 22:47 ` Richard M. Stallman

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200602182312.k1INCmL06749@raven.dms.auburn.edu \
    --to=teirllm@dms.auburn.edu \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.