From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Judeau Newsgroups: gmane.emacs.help Subject: Re: Why code completion using CEDET in Emacs so slow? Date: Wed, 12 Oct 2011 11:08:28 -0700 (PDT) Message-ID: <32640322.post@talk.nabble.com> References: <32638310.post@talk.nabble.com> <87zkh6qf7j.fsf@arcor.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1318442925 32557 80.91.229.12 (12 Oct 2011 18:08:45 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 12 Oct 2011 18:08:45 +0000 (UTC) To: Help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Oct 12 20:08:40 2011 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RE3EK-0006kU-V3 for geh-help-gnu-emacs@m.gmane.org; Wed, 12 Oct 2011 20:08:37 +0200 Original-Received: from localhost ([::1]:51969 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RE3EK-0007dS-Di for geh-help-gnu-emacs@m.gmane.org; Wed, 12 Oct 2011 14:08:36 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:59869) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RE3EF-0007RN-6j for Help-gnu-emacs@gnu.org; Wed, 12 Oct 2011 14:08:32 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RE3ED-0008SN-HR for Help-gnu-emacs@gnu.org; Wed, 12 Oct 2011 14:08:31 -0400 Original-Received: from sam.nabble.com ([216.139.236.26]:37817) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RE3ED-0008SI-Dk for Help-gnu-emacs@gnu.org; Wed, 12 Oct 2011 14:08:29 -0400 Original-Received: from isper.nabble.com ([192.168.236.156]) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1RE3EC-0000vk-Lu for Help-gnu-emacs@gnu.org; Wed, 12 Oct 2011 11:08:28 -0700 In-Reply-To: <87zkh6qf7j.fsf@arcor.de> X-Nabble-From: solidius4747@gmail.com X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 216.139.236.26 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:82532 Archived-At: David Engster wrote: > > >> I used auto complete clang, but it seems to have no speed improvement. >> Why >> is that :( ? > > I have no idea. Maybe CEDET isn't compiled correctly? > I byte-compiled CEDET and setting up correctly without any error. David Engster wrote: > >> I love Emacs and all, and been using it for my C/C++ for almost >> a year until I discover KDevelop. Using Emacs means code completion >> should >> be trivial and optional? I really love this Emacs as an editor and as an >> "IDE". I just want to find a way to improve this. >> >> I notice that when performing auto complete, my disk got accessed a lot. >> Is >> there a way to make the included files stored in memory for faster look >> up? >> Or should CEDET implement this way? > > Maybe your project is simply very large? Could you give some concrete > examples where completions are too slow for you? Maybe CEDET can be > tuned to your project by excluding some headers which slow down > completion. > > -David > I want to use the boost header files. Every time I include a new header file in the boost library, it takes pretty long to parse. I used boost asio, and it always takes a few seconds for the first look up. The second look up (means cached) is a brief. delay. Meanwhile, using Eclipse CDT or KDevelop, after I include the header file such as boost/asio.hpp , the symbols in the header file (and related files in the header) are automatically available for look up instantly without any delay (just like the usual feeling when programming with Java in an IDE). However, in order for Eclipse to "see" the symbol, I must specified the library & link path for a particular project. For that reason, also since my company is using Eclipse, I end up using Eclipse with Emacs key binding, which is a neat combination. But, I still want to make my Emacs environment better, simply because its key binding and command system is really nice for productivity. And, with autocomplete.el, autocomplete is usually sufficient, mainly even without completion or not, we usually have to look up for the function in the document anyway. Afterward, autocomplete.el does it job nicely. -- View this message in context: http://old.nabble.com/Why-code-completion-using-CEDET-in-Emacs-so-slow--tp32638310p32640322.html Sent from the Emacs - Help mailing list archive at Nabble.com.