From: Thorsten Bonow <thorsten.bonow@post.rwth-aachen.de>
To: help-gnu-emacs@gnu.org
Subject: Re: xcscope.el slow - linux kernel
Date: Sat, 08 Sep 2007 20:09:53 +0200 [thread overview]
Message-ID: <87hcm5hvv2.fsf@post.rwth-aachen.de> (raw)
In-Reply-To: 1189256635.844718.97330@w3g2000hsg.googlegroups.com
>>>>> "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)
next prev parent reply other threads:[~2007-09-08 18:09 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-09-08 13:03 xcscope.el slow - linux kernel Rafal Kurcz
2007-09-08 18:09 ` Thorsten Bonow [this message]
2007-09-09 9:06 ` Rafal Kurcz
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87hcm5hvv2.fsf@post.rwth-aachen.de \
--to=thorsten.bonow@post.rwth-aachen.de \
--cc=help-gnu-emacs@gnu.org \
/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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).