From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#23223: 25.0.92; Can xref-find-references be sped up? Date: Tue, 12 Apr 2016 22:16:22 +0300 Message-ID: <83d1pufxix.fsf@gnu.org> References: <83pou4m6h7.fsf@gnu.org> <902ac022-3a76-c363-0c77-12b1cdb8d521@yandex.ru> <8360vumzk4.fsf@gnu.org> <83mvp5lauu.fsf@gnu.org> <4424e043-31c7-0da4-213a-ee8ac31d9265@yandex.ru> <83vb3ri6q0.fsf@gnu.org> <83zit0f8ah.fsf@gnu.org> <90b81ad1-c3ab-272b-724b-ba63f0451d5a@yandex.ru> <83h9f6g71i.fsf@gnu.org> <1d635548-1fe3-ea72-4c98-6f787d7438b0@yandex.ru> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1460488706 23813 80.91.229.3 (12 Apr 2016 19:18:26 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 12 Apr 2016 19:18:26 +0000 (UTC) Cc: 23223@debbugs.gnu.org To: Dmitry Gutov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Apr 12 21:18:15 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1aq3pG-00067o-64 for geb-bug-gnu-emacs@m.gmane.org; Tue, 12 Apr 2016 21:18:14 +0200 Original-Received: from localhost ([::1]:55843 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aq3pF-0006F9-G0 for geb-bug-gnu-emacs@m.gmane.org; Tue, 12 Apr 2016 15:18:13 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:57069) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aq3pA-0006B2-LN for bug-gnu-emacs@gnu.org; Tue, 12 Apr 2016 15:18:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aq3p4-0003Yx-NC for bug-gnu-emacs@gnu.org; Tue, 12 Apr 2016 15:18:08 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:48962) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aq3p4-0003Yr-JH for bug-gnu-emacs@gnu.org; Tue, 12 Apr 2016 15:18:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1aq3p4-0007Kb-FF for bug-gnu-emacs@gnu.org; Tue, 12 Apr 2016 15:18:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 12 Apr 2016 19:18:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 23223 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 23223-submit@debbugs.gnu.org id=B23223.146048862328105 (code B ref 23223); Tue, 12 Apr 2016 19:18:02 +0000 Original-Received: (at 23223) by debbugs.gnu.org; 12 Apr 2016 19:17:03 +0000 Original-Received: from localhost ([127.0.0.1]:33066 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1aq3o7-0007JE-Bt for submit@debbugs.gnu.org; Tue, 12 Apr 2016 15:17:03 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:37678) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1aq3o6-0007Ii-3I for 23223@debbugs.gnu.org; Tue, 12 Apr 2016 15:17:02 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aq3nw-0003Do-8F for 23223@debbugs.gnu.org; Tue, 12 Apr 2016 15:16:56 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:60264) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aq3nw-0003Dk-4u; Tue, 12 Apr 2016 15:16:52 -0400 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:3606 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1aq3nv-0002FF-GO; Tue, 12 Apr 2016 15:16:51 -0400 In-reply-to: <1d635548-1fe3-ea72-4c98-6f787d7438b0@yandex.ru> (message from Dmitry Gutov on Tue, 12 Apr 2016 21:49:14 +0300) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:116421 Archived-At: > Cc: 23223-done@debbugs.gnu.org > From: Dmitry Gutov > Date: Tue, 12 Apr 2016 21:49:14 +0300 > > > Btw, I noticed another strange thing, but I was only able to reproduce > > it with the current version, before your patch: the set of results > > returned by xref-find-references, when it uses IDUtils, is not > > entirely repeatable. Sometimes, a few matches, sometimes a few dozen > > of them, are missing. I have no idea why; the lid command > > consistently returns the same number of lines each time I invoke it. > > That sounds troubling. Please report if you encounter this again, I just did, with the current emacs-25 branch. > together with: do you get different results when immediately repeating > the same search? Or do you search from different files, in different > directories? The same search, immediately repeated from the same directory. More accurately, the first time I invoke xref-find-references in the top-level directory of the Emacs repository, I get 980 matches; thereafter, all the subsequent searches from the same Emacs session yield 1128 matches. This is with the ID database present in the top-level directory. > Getting different results between searches from c-mode and > emacs-lisp-mode is to be expected, because the latter searches in all > load-path as well (and it ends up using Grep in most of those > directories anyway). All the searches are done from *scratch* in "emacs -Q". Let me know if I can provide more info.