From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.bugs Subject: bug#28227: 26.0.50; Tramp tests are slow Date: Fri, 01 Sep 2017 14:28:33 +0200 Message-ID: <877exili1a.fsf@detlef> References: <878ti81xwb.fsf@chinook> <87lgm8dqev.fsf@detlef> <874lsok15a.fsf@runbox.com> <87lgm079ra.fsf@users.sourceforge.net> <87inh3iym8.fsf@runbox.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1504268967 18189 195.159.176.226 (1 Sep 2017 12:29:27 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 1 Sep 2017 12:29:27 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) Cc: 28227@debbugs.gnu.org, npostavs@users.sourceforge.net To: Gemini Lasswell Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Sep 01 14:29:18 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dnl4L-0003d4-8J for geb-bug-gnu-emacs@m.gmane.org; Fri, 01 Sep 2017 14:29:05 +0200 Original-Received: from localhost ([::1]:38923 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dnl4S-0006Pu-CR for geb-bug-gnu-emacs@m.gmane.org; Fri, 01 Sep 2017 08:29:12 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48987) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dnl4M-0006PP-0h for bug-gnu-emacs@gnu.org; Fri, 01 Sep 2017 08:29:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dnl4I-00059q-Ma for bug-gnu-emacs@gnu.org; Fri, 01 Sep 2017 08:29:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:58927) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dnl4I-00059l-JD for bug-gnu-emacs@gnu.org; Fri, 01 Sep 2017 08:29:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dnl4I-00037S-5m for bug-gnu-emacs@gnu.org; Fri, 01 Sep 2017 08:29:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Michael Albinus Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 01 Sep 2017 12:29:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 28227 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 28227-submit@debbugs.gnu.org id=B28227.150426893511977 (code B ref 28227); Fri, 01 Sep 2017 12:29:02 +0000 Original-Received: (at 28227) by debbugs.gnu.org; 1 Sep 2017 12:28:55 +0000 Original-Received: from localhost ([127.0.0.1]:39375 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dnl4B-000376-65 for submit@debbugs.gnu.org; Fri, 01 Sep 2017 08:28:55 -0400 Original-Received: from mout.gmx.net ([212.227.17.20]:51848) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dnl48-00036r-Tj for 28227@debbugs.gnu.org; Fri, 01 Sep 2017 08:28:53 -0400 Original-Received: from detlef.gmx.de ([178.20.93.142]) by mail.gmx.com (mrgmx102 [212.227.17.168]) with ESMTPSA (Nemesis) id 0M6874-1dYy1x3KRO-00y6Bf; Fri, 01 Sep 2017 14:28:35 +0200 In-Reply-To: <87inh3iym8.fsf@runbox.com> (Gemini Lasswell's message of "Thu, 31 Aug 2017 07:46:33 -0700") X-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A76f40j4jte 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:136440 Archived-At: Gemini Lasswell writes: Hi Gemini, > Here's a new patch which uses defun and doesn't have the let binding. > Performance is not noticably different. Looks good to me, thanks a lot! You could apply this to master. `tramp-prefix-method-regexp-alist' might be renamed to `tramp-method-regexp-alist'. And `tramp-*-regexp-alist' might be derived from `tramp-*-format-alist', as the docstring says. Otherwise, you would use the same string literals twice, which is always good for errors during maintenance. Something like (defconst tramp-prefix-regexp-alist (mapcar (lambda (x) (cons (car x) (concat "^" (regexp-quote (cdr x))))) tramp-prefix-format-alist) "Alist of regexps matching the beginnings of Tramp file names. Keyed by Tramp syntax. Derived from `tramp-prefix-format-alist'.") Best regards, Michael.