all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Doug Lewan <dougl@shubertticketing.com>
To: 毛礼杰 <maolijie@gmail.com>,
	"help-gnu-emacs@gnu.org" <help-gnu-emacs@gnu.org>
Subject: RE: ECB eat CPU
Date: Wed, 20 Jun 2012 13:05:36 +0000	[thread overview]
Message-ID: <155DEC68569B714B86C2C7075F5EDA980AE127AC@DAKIYA1.pegasus.local> (raw)
In-Reply-To: <CAK6L5cBqFePFm1qxGa5CutyFcdm16-4w3wn7Nzqc3ZwW6W_Whw@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1244 bytes --]

Mao,

While I don't know ECB specifically, my experience is that when emacs eats the CPU there's a complex regular expression at the heart of it.
(Personally, I'm happy to sacrifice the CPU for a few seconds to let a regular expression do a lot of work for me.
But I'm generally upset when it goes on for minutes or hours.)

I've also found that a really bad regular expression can typically be improved by making it less ambiguous.
Perhaps you could narrow it down to the offending function and then the offending regular expression.
The worst you could do is prove me wrong.

,Doug

From: help-gnu-emacs-bounces+dougl=shubertticketing.com@gnu.org [mailto:help-gnu-emacs-bounces+dougl=shubertticketing.com@gnu.org] On Behalf Of ???
Sent: Tuesday, 2012 June 19 21:14
To: help-gnu-emacs@gnu.org
Subject: ECB eat CPU

Hi,

   I run GNU emacs23.4.1 + ECB2.40(from cvs) + cedet1.1 on CentOS5
and sometimes, emacs eat all CPU (90+%), after a few seconds, it recover
but this situation is very often,
   It may be ECB's problem, when deactivate ECB
it run more smooth, Is there anyone know how to do with it?  or disable some
function of ECB to let it better ? I only use ECB's methods buffer.


--
毛礼杰 <Mao Lijie>

[-- Attachment #2: Type: text/html, Size: 5403 bytes --]

      reply	other threads:[~2012-06-20 13:05 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-06-20  1:13 ECB eat CPU 毛礼杰
2012-06-20 13:05 ` Doug Lewan [this message]

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=155DEC68569B714B86C2C7075F5EDA980AE127AC@DAKIYA1.pegasus.local \
    --to=dougl@shubertticketing.com \
    --cc=help-gnu-emacs@gnu.org \
    --cc=maolijie@gmail.com \
    /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.