From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: emacs-27 b46c75b: xref-matches-in-files: Big Tramp speed-up Date: Wed, 08 Jan 2020 15:51:51 -0500 Message-ID: References: <20200107133628.1996.14412@vcs0.savannah.gnu.org> <20200107133629.2E736211A5@vcs0.savannah.gnu.org> <87y2uiiakq.fsf@gmx.de> <6255626b-0422-c1d2-af66-5cbd0f496719@yandex.ru> <87muayhw8q.fsf@gmx.de> <87h816htg2.fsf@gmx.de> <87blrdj3zv.fsf@gmx.de> <877e21iuar.fsf@gmx.de> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="91094"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: emacs-devel@gnu.org, Dmitry Gutov To: Michael Albinus Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Jan 08 21:53:13 2020 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1ipIJe-00113q-GQ for ged-emacs-devel@m.gmane-mx.org; Wed, 08 Jan 2020 21:52:34 +0100 Original-Received: from localhost ([::1]:49292 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ipIJc-0003oe-OV for ged-emacs-devel@m.gmane-mx.org; Wed, 08 Jan 2020 15:52:32 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:60324) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ipIJ2-0003Fu-Al for emacs-devel@gnu.org; Wed, 08 Jan 2020 15:51:57 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ipIJ1-0005BZ-0Y for emacs-devel@gnu.org; Wed, 08 Jan 2020 15:51:55 -0500 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:50455) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1ipIJ0-0005Az-QI for emacs-devel@gnu.org; Wed, 08 Jan 2020 15:51:54 -0500 Original-Received: from pmg3.iro.umontreal.ca (localhost [127.0.0.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id E6E1644DBD8; Wed, 8 Jan 2020 15:51:53 -0500 (EST) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id 8DB4D44DBD4; Wed, 8 Jan 2020 15:51:52 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1578516712; bh=O/hdGPMb7YaFS2u5l4/5V1ZdpqV+5F8DbZjPJeO4qQ8=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=Isi7+R16GfUKNu8UN2VtyF9vjfyieRw0BAzuZ2XXSo7LBv+N5ZZ6SvHyCZTMvRxfy GCGYr2dkQDhmML8NrhW/Vv4ZapyEWV7Vrb3tJT02T/g2WfvQYtWWzSRaPrhaW3L+KN vCOeLJM+x+yGFXvpcn+wbrZJGQgW9WcOfOJDIh3fZ50vx857zw9CT1t9nZoNGslUSa mRu8nvCGkmMSCrc7JDPN/HbGVwYsrDRZmlRO/Q5RpNiFOfJyHVBSNMH7siYjoBiJE1 Y0RxiSFCMgkwN+TPr1aqm8ioNhg4rY8PzeejMX7QPxcIMiElID4F2sAQZZM9TxXxmJ uhBsINiWTx5Ig== Original-Received: from lechazo (lechon.iro.umontreal.ca [132.204.27.242]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 4D44B120312; Wed, 8 Jan 2020 15:51:52 -0500 (EST) In-Reply-To: <877e21iuar.fsf@gmx.de> (Michael Albinus's message of "Wed, 08 Jan 2020 21:10:04 +0100") X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 132.204.25.50 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:244150 Archived-At: > I said it already several times: it is tramp-file-name-handler, invoked > for every single file, which makes the major difference. Yes, I saw that, but it's still not clear to me which part of this costs so much more than tramp-file-local-name itself, nor why. >> Yes, the idea makes sense. Basically add a magic-file-op >> (file-list-apply FUNCTION DIR FILES &rest ARGS) where FILES are relative >> to DIR? > > Something like this, yes. However, in the case Dmitry is interested in, > FILES would be remote file names instead of relative file names. The "remote" pat would presumably be in the DIR argument (DIR would presumably be the root of the project or something like that). > He wanted to know the local file name part of the FILES. Actually, maybe xref could apply `file-local-name` to the root of the project? Stefan