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. -- 毛礼杰