From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Thorsten Bonow Newsgroups: gmane.emacs.help Subject: Re: xcscope.el slow - linux kernel Date: Sat, 08 Sep 2007 20:09:53 +0200 Message-ID: <87hcm5hvv2.fsf@post.rwth-aachen.de> References: <1189256635.844718.97330@w3g2000hsg.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1189276829 10175 80.91.229.12 (8 Sep 2007 18:40:29 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 8 Sep 2007 18:40:29 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Sep 08 20:40:29 2007 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1IU5EH-0008Pt-64 for geh-help-gnu-emacs@m.gmane.org; Sat, 08 Sep 2007 20:40:25 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IU5EE-0005QQ-UQ for geh-help-gnu-emacs@m.gmane.org; Sat, 08 Sep 2007 14:40:22 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!fu-berlin.de!uni-berlin.de!news.dfncis.de!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 69 Original-X-Trace: news.dfncis.de nvXz7Byzs4z3I852bSeUsQT2vsi/rGHbgymAkYVRm1ecMCWVkL9toZs+r3 Cancel-Lock: sha1:EbqyrcQTPrcRDT0msUIPSLM7EfA= sha1:ky3i/F8kkmuOS5tU+raqVB5kUUU= User-Agent: Gnus/5.110006 (No Gnus v0.6) XEmacs/21.4.20 (linux) Original-Xref: shelby.stanford.edu gnu.emacs.help:151851 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:47373 Archived-At: >>>>> "Rafal" == Rafal Kurcz writes: Rafal> Hello When I use cscope outside of emacs with latest linux kernel it Rafal> works very quickly. It finds "global definition:__free_pages_ok " Rafal> and "functions calling a function:__free_pages_ok " in less than 0.1 Rafal> sec. Rafal> The above operations take about 2 sec when using xcscope.el. Yup, takes even longer on my old Athlon 700. Rafal> 1. Can I force xcscope.el to perform those operations in less than Rafal> 0.1 sec ? I guess you mean "much faster than 2.0 seconds" in order to match the 0.1 seconds from the bare bones cscope interface. xcscope.el is just an interface to cscope, it can't be faster. Rafal> 2. Where can I find the "fast" version of xcscope.el / cscope- Rafal> indexer ? Sigh, on your computer, after you wrote it ;-) I'm not happy with cscope-indexer and I think that the script can be replaced with lisp code, but I do not have the time to do so. So don't hold your breath... and it's lisp, calling external programs: don't expect it to become much faster. There are several versions of cscope interfaces for emacsen out there, maybe you find one which is faster. I doubt it. Rafal> 3. How should I generate cscope data files ? Rafal> a. with cscope-indexer ? This just calls "cscope -b" Rafal> b. with "make cscope" directly from linux kernel ? This just calls "cscope -b -k -q". Unfortunatedly, on my system this leads to a warning message about "Mismatch of option -q" when you call cscope next time via xscope. Rafal> c. with "cscope -b -k -q" ? See above. Rafal> I work on Pentium 4 2.4 Ghz. You could hack cscope-indexer to include the "-q" or even the "-k" option (You can customise xcscope to use a different script). But it would be nicer to be able to specify these as options to the script from within xcscope. But than you have to write a wrapper script for cscope, too. To prevent that darned option mismatch, xcscope must do the cscope calls with the same options, but unfortunately, customising the value of "cscope-program" to "cscope -q" doesn't work, because xcscope than looks for a program called "cscope -q" and can't find it. Rafal> Thank You for help Sorry, no help, just explaining that scratching your itch is difficult. -- Contact information and PGP key at http://www-users.rwth-aachen.de/thorsten.bonow .... No man was ever taken to hell by a woman unless he already has a ticket in his pocket, or at least had been fooling around with timetables. Archie Goodwin (says Kinky Friedman)