From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.bugs Subject: bug#62837: [PATCH] Add a semantic-symref backend which uses xref-matches-in-files Date: Sat, 15 Apr 2023 15:37:20 +0300 Message-ID: <60f84f7d-ce20-f51e-5219-c845ccc7c6bc@yandex.ru> References: <5e6eddd5-4b38-5765-05f3-dd6c1927edd3@yandex.ru> <83o7npej0j.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="25035"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.10.0 Cc: sbaugh@janestreet.com, 62837@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Apr 15 14:38:18 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pnfAW-0006HR-Rr for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 15 Apr 2023 14:38:16 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pnfAK-0008Cg-Fw; Sat, 15 Apr 2023 08:38:04 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pnfAI-0008CW-IU for bug-gnu-emacs@gnu.org; Sat, 15 Apr 2023 08:38:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pnfAH-0003o3-OL for bug-gnu-emacs@gnu.org; Sat, 15 Apr 2023 08:38:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pnfAH-0006wV-K2 for bug-gnu-emacs@gnu.org; Sat, 15 Apr 2023 08:38:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Dmitry Gutov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 15 Apr 2023 12:38:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 62837 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 62837-submit@debbugs.gnu.org id=B62837.168156225226641 (code B ref 62837); Sat, 15 Apr 2023 12:38:01 +0000 Original-Received: (at 62837) by debbugs.gnu.org; 15 Apr 2023 12:37:32 +0000 Original-Received: from localhost ([127.0.0.1]:48484 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pnf9o-0006vb-7N for submit@debbugs.gnu.org; Sat, 15 Apr 2023 08:37:32 -0400 Original-Received: from forward502a.mail.yandex.net ([178.154.239.82]:54468) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pnf9l-0006vO-FP for 62837@debbugs.gnu.org; Sat, 15 Apr 2023 08:37:31 -0400 Original-Received: from mail-nwsmtp-smtp-production-main-84.vla.yp-c.yandex.net (mail-nwsmtp-smtp-production-main-84.vla.yp-c.yandex.net [IPv6:2a02:6b8:c0f:26a7:0:640:a2d5:0]) by forward502a.mail.yandex.net (Yandex) with ESMTP id 272035EA52; Sat, 15 Apr 2023 15:37:27 +0300 (MSK) Original-Received: by mail-nwsmtp-smtp-production-main-84.vla.yp-c.yandex.net (smtp/Yandex) with ESMTPSA id NbYJ8nUDUOs0-mokcr5nz; Sat, 15 Apr 2023 15:37:26 +0300 X-Yandex-Fwd: 1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1681562246; bh=5kwzW/WJHfYLOaA7Zcc5o83+io2+k1yX1nQbC1SG+CU=; h=In-Reply-To:From:Subject:Message-ID:Cc:References:Date:To; b=YUr3OQntP+aGP08c4tpfe8bao/dFuvP3iOFVqkvRxsBz/RpyJ7HrnC51bhXf6mrVA V955cHPsAcOawELOfpUv8kpHTpikZwAeghxm/2m+kRsj9aZ/vY9uoYfHqDPfbq0DOY T04YprvCM5I5EdLjWdcJPGc5Q4QSZDv1m/PeEK8U= Authentication-Results: mail-nwsmtp-smtp-production-main-84.vla.yp-c.yandex.net; dkim=pass header.i=@yandex.ru Original-Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailauth.nyi.internal (Postfix) with ESMTP id 09F3C27C0054; Sat, 15 Apr 2023 08:37:22 -0400 (EDT) Original-Received: from mailfrontend1 ([10.202.2.162]) by compute3.internal (MEProxy); Sat, 15 Apr 2023 08:37:23 -0400 X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrvdelvddghedvucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepkfffgggfuffvvehfhfgjtgfgsehtjeertddtfeejnecuhfhrohhmpeffmhhi thhrhicuifhuthhovhcuoegughhuthhovheshigrnhguvgigrdhruheqnecuggftrfgrth htvghrnheptdffgeegkeelteevtdekleethfeftdduvdegkedtkedujefhfedtveeftdff udevnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepug hguhhtohhvodhmvghsmhhtphgruhhthhhpvghrshhonhgrlhhithihqddufeeffeelleeh hedvqddvleegjeejjeejiedqughguhhtohhvpeephigrnhguvgigrdhruhesfhgrshhtmh grihhlrdgtohhm X-ME-Proxy: Feedback-ID: ib1d9465d:Fastmail Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sat, 15 Apr 2023 08:37:21 -0400 (EDT) Content-Language: en-US In-Reply-To: <83o7npej0j.fsf@gnu.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:260045 Archived-At: On 15/04/2023 09:50, Eli Zaretskii wrote: >> Date: Sat, 15 Apr 2023 01:38:18 +0300 >> From: Dmitry Gutov >> >> On 14/04/2023 18:37, Spencer Baugh wrote: >>> When project-files is available, this is a much more efficient >>> fallback than the current grep fallback. Ultimately, this is >>> motivated by making xref-find-references faster by default even in the >>> absence of an index. >> It's a clever enough idea, but unfortunately it doesn't look like the >> performance is always improved by this change. > Maybe we could offer that as optional behavior, turned on by some user > option? Then people who do experience performance boost could use it. Sure. That's also possible. But I'd like more info anyway, for example, to be able to make the choice about which value of said option should be the default. Or if the scenario with the improvement turns out to be a rare one, concentrate on what project.el needs to provide to make it better.