[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: xcscope.el slow - linux kernel
From: |
Thorsten Bonow |
Subject: |
Re: xcscope.el slow - linux kernel |
Date: |
Sat, 08 Sep 2007 20:09:53 +0200 |
User-agent: |
Gnus/5.110006 (No Gnus v0.6) XEmacs/21.4.20 (linux) |
>>>>> "Rafal" == Rafal Kurcz <pawlaczus@yahoo.com> 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)