From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Philippe Vaucher Newsgroups: gmane.emacs.devel Subject: Re: emacs-27 b46c75b: xref-matches-in-files: Big Tramp speed-up Date: Mon, 13 Jan 2020 10:50:48 +0100 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: multipart/alternative; boundary="0000000000008baf05059c026a17" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="193688"; mail-complaints-to="usenet@blaine.gmane.org" Cc: Michael Albinus , Stefan Monnier , Emacs developers To: Dmitry Gutov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Jan 13 10:53:58 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 1iqwP7-000gnq-L7 for ged-emacs-devel@m.gmane-mx.org; Mon, 13 Jan 2020 10:53:01 +0100 Original-Received: from localhost ([::1]:48008 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iqwP6-0007Xa-AY for ged-emacs-devel@m.gmane-mx.org; Mon, 13 Jan 2020 04:53:00 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:39588) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iqwNU-00069P-RV for emacs-devel@gnu.org; Mon, 13 Jan 2020 04:51:22 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iqwNT-0007rC-TD for emacs-devel@gnu.org; Mon, 13 Jan 2020 04:51:20 -0500 Original-Received: from mail-lj1-x234.google.com ([2a00:1450:4864:20::234]:38357) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iqwNT-0007oE-JJ for emacs-devel@gnu.org; Mon, 13 Jan 2020 04:51:19 -0500 Original-Received: by mail-lj1-x234.google.com with SMTP id w1so9274440ljh.5 for ; Mon, 13 Jan 2020 01:51:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=T3ct9TbNY31KaPiHyn/otYqL6Z5CR2BNCSk27Sxqkl0=; b=C4u2+oUjTL8OJGcCKAw0HFy9DUn6SSUYlSryrfBba26pN3kCi2Zai9DUkwgIDdSgVo LOQ/x7Wgz8y250Y5rwLuTgMwxmvJawi5G/3twRXdCgFJMQaAAR39CMWheeY+wPSB/sIS Iv4rK/T6kbwDet3F4nxFyjEzJhx6Ts79wOif1IhzTFGoMiVAjXDZa2EljRrp/Qdt/skF bG5aCXzWtgDVuItgxLTvD7nOOPKIIqP/NtzPFjuH0hsFIom5UTUyvzW+L3AemRD2Z0ER CI9PP2sCMo4RDB12zip69eBOAFaSlib6yABX8CzWS9a4lTSYajaG0KDAmWVc3W2EPaeQ 1McA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=T3ct9TbNY31KaPiHyn/otYqL6Z5CR2BNCSk27Sxqkl0=; b=Lz66ajW2SYGkEcf5aOOG84rJu1dg2yMcdCtT08/ugBpSb7rPv5FPldcRxk5iNZO7Qc OlqlY6gfqh9kvXHvWFjCjijRtk/aNkPCXYx+SMfsJVyQEPAWnRqfCyKqV4PMWdR0Xc7J 6VmzpH7OrTGkWxamQkTW2lCqC3RvytJ0C6a/XxsP77FJWE4R21uTWQPrcSTAEIKRieQX vdQAUEGIttD7wfIVms7mR92Zvhgpp9Og5vcN/RuksIQp0wrJa9zwa+IvDAjo2zg7pwbJ C/hwSStTTiiIar+jewyUqFkdQqqkHoJde32qcE4i4s354nMhdiVsR/DMM2VwiVI/7Jvq KCcA== X-Gm-Message-State: APjAAAVRsAhDe6E+puTMppYUSzZLrd1svi7534tklfY74S1ITrkxvmx1 QhIBzTc29pQm2mi0fZji0hRPTz1FpUulLqPcRxU= X-Google-Smtp-Source: APXvYqwNZAPON2iQMMW3ps+nJhGEsalLTye11BG84SQBxELZQUrIaX3Ul8TPc5ieiUkBtVzVfVUo5IlCSRGkVWjdJAw= X-Received: by 2002:a2e:9708:: with SMTP id r8mr10287445lji.92.1578909074959; Mon, 13 Jan 2020 01:51:14 -0800 (PST) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::234 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:244219 Archived-At: --0000000000008baf05059c026a17 Content-Type: text/plain; charset="UTF-8" > > On 08.01.2020 22:51, Stefan Monnier wrote: > > 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. > > The whole of it, mostly. I've shown a simple patch which improved > performance a lot, by Michael says it's unmaintainable (IIUC): I'm not sure wether what I'll say is relevant to this discussion (please forgive me if it is not), but I just wanted to mention that a significant part of "debugging TRAMP problems" in projects like projectile is related to TRAMP's speed. I always assumed it was due to the fact that checking file attributes over SSH is unavoidably slower than doing it locally, but if TRAMP can be improved for things like `locate-dominating-file` over TRAMP it'd be a huge help. Kind regards, Philippe --0000000000008baf05059c026a17 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On 08.01.2020 22:51, Stefan Monnier wrote:
> 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.

The whole of it, mostly. I've shown a simple patch which improved
performance a lot, by Michael says it's unmaintainable (IIUC):

I'm not sure wether what I'll say is releva= nt to this discussion (please forgive me if it is not), but I just wanted t= o mention that a significant part of "debugging TRAMP problems" i= n projects like projectile is related to TRAMP's speed.

<= /div>
I always assumed it was due to the fact that checking file attrib= utes over SSH is unavoidably slower than doing it locally, but if TRAMP can= be improved for things=C2=A0like `locate-dominating-file` over TRAMP it= 9;d be a huge help.

Kind regards,
Philip= pe
--0000000000008baf05059c026a17--