GNU bug report logs -
#20629
25.0.50; Regression: TAGS broken, can't find anything in C++ files.
Previous Next
Reported by: "Jan D." <jan.h.d <at> swipnet.se>
Date: Fri, 22 May 2015 05:59:02 UTC
Severity: normal
Found in version 25.0.50
Done: Eli Zaretskii <eliz <at> gnu.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
On 05/29/2015 07:51 PM, Stefan Monnier wrote:
> FWIW, doubling the size of the TAGS file will also double the size of
> the obarray and hence increase the completion time similarly regardless
> of whether we keep using an obarray or if we switch to searching the
> TAGS buffers.
Completion using obarray is currently an order of magnitude (or two)
faster than the proposed patch that just uses search. Doubling that
won't be a problem.
And the size of obarray may grow more than twice as big, or only a
little, depending on what we're comparing to. The latter - if we're
dealing with a C++ codebase with a lot of methods with the same name
(and comparing against the same codebase where all names are qualified).
In any case, we can choose which entries to include in the obarray, in
Lisp. If we don't want the unqualified names in completions (or the
qualified ones, for some reason), we won't put them in the obarray, but
we'll still be able to find them if asked by the user.
> Yet another alternative is to build a trie, which would speed up
> prefix (and partial) completion (but not substring completion).
It doesn't seem warranted thus far. Displaying the completions currently
takes considerably longer than finding them in the obarray.
This bug report was last modified 9 years and 69 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.