GNU bug report logs -
#23223
25.0.92; Can xref-find-references be sped up?
Previous Next
Reported by: Eli Zaretskii <eliz <at> gnu.org>
Date: Tue, 5 Apr 2016 15:17:02 UTC
Severity: normal
Found in version 25.0.92
Fixed in version 25.1
Done: Dmitry Gutov <dgutov <at> yandex.ru>
Bug is archived. No further changes may be made.
Full log
Message #8 received at 23223 <at> debbugs.gnu.org (full text, mbox):
On 04/05/2016 06:16 PM, Eli Zaretskii wrote:
> The important part of the Lisp-level profile appears below. It looks
> like we are visiting each match of each file in the list of matches,
> and that takes most of the time. Can this be avoided somehow? The
> 'lid' command already includes all the matches in Grep format, so why
> are we visiting each match, when the information should be already
> available?
Huh, yes, that's the area of optimization I've forgotten about (mostly
because of using plain Grep myself anyway). If id-utils (and some other
tools we delegate to) know symbol boundaries, maybe we don't need to
double-check.
However, Grep output, which 'lid --result=grep' also uses, only outputs
the line number, but not the starting column.
Take this example:
I'm searching for 'buffer'. The last line of the output looks like this:
xmenu.c:832: set_buffer_internal_1 (XBUFFER (buffer));
How do I find the appropriate 'buffer' match in this line?
Or can we ask 'lid' (and, ideally, Grep too) to include the column of a
match in the output? And when there are several matches on the same
line, output that line multiple times?
Grep has colorized output, so I should be able to work with that. But
not 'lid', it seems.
This bug report was last modified 9 years and 92 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.