From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Dima Kogan Newsgroups: gmane.emacs.devel Subject: Recent diff-mode changes feel slow with TRAMP Date: Fri, 11 Jan 2019 20:16:04 -0800 Message-ID: <87r2di5x4r.fsf@secretsauce.net> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1547266454 31097 195.159.176.226 (12 Jan 2019 04:14:14 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 12 Jan 2019 04:14:14 +0000 (UTC) User-Agent: mu4e 1.0; emacs 27.0.50 To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Jan 12 05:14:10 2019 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1giAgS-0007ts-TY for ged-emacs-devel@m.gmane.org; Sat, 12 Jan 2019 05:14:09 +0100 Original-Received: from localhost ([127.0.0.1]:39077 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1giAiZ-00014h-EO for ged-emacs-devel@m.gmane.org; Fri, 11 Jan 2019 23:16:19 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:39696) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1giAiS-00014T-NI for emacs-devel@gnu.org; Fri, 11 Jan 2019 23:16:13 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1giAiR-0008Mi-Vd for emacs-devel@gnu.org; Fri, 11 Jan 2019 23:16:12 -0500 Original-Received: from out1-smtp.messagingengine.com ([66.111.4.25]:50563) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1giAiR-0008Fw-Lr for emacs-devel@gnu.org; Fri, 11 Jan 2019 23:16:11 -0500 Original-Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id B197625189 for ; Fri, 11 Jan 2019 23:16:07 -0500 (EST) Original-Received: from mailfrontend2 ([10.202.2.163]) by compute1.internal (MEProxy); Fri, 11 Jan 2019 23:16:07 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=secretsauce.net; h=from:to:subject:date:message-id:mime-version:content-type; s= fm2; bh=MQFB60+K3E2paHh3cVcndb04VSyIwqYSiAVO5rY7hsU=; b=3cdav/0K iqfyhoBhvZ41fxpaS2vgGgXVxc5AwnqY+u2GdNabOpoWVD7+bs0HZSeQaXerShUe c38Ku8lDTttetTWQcYNZgiAXkwJTkelmR56GIahGmJjIykLkVUCaV71anxqmH+Q7 Gsr9J3NhIcnieJi6CRx9dDekWLvPbLLKzrME9ZU6tFLnMO8wTiZj3EHR/pFVeuOw dRnQ6USDC0uwRWO+h87uaRApYhn4rbNBib8CN1Qk12JUBmD+wKcPzR29FXfHZta6 S9Vj+tIJw5nhj8R7XLMGGPl+YNwg0AW5Qo4/TuBZ5puzHUBLJ9P/fyd0OTdxIIxs LJJxvGhQJqA0tw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:message-id :mime-version:subject:to:x-me-proxy:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm1; bh=MQFB60+K3E2paHh3cVcndb04VSyIw qYSiAVO5rY7hsU=; b=R1Forf0iFCPNshfYgYz1qEz9JrIC3CeE/lKCOUOJyNQjZ jxbl0i+VZKX4l+h2krqMQryNv04UZSUyIwocnRbK0yRcPY1EQVB1ALNzRxiibLXi F+D1Md1WWsbdG4gGWKqtkb8OGGCFMz/IrdV0GL/ThUcVCkcMqf6N4bv6YwGhBW8Q lZj3xNjkV2iqa68DQ8mQykri9MBsXV5NwQmqZskK4LydB1FsyxV4XgkDeQ3l5W6G 78Q4bOBTxMiR60h4OQC0qauq6AfjVm4T3CSVXxp9XquhxFv5X/yRpwDaIbQz61m5 84DjHt4nIlhpOUa0jEs0Z3vGL9L5qzp6FhCRnHl+g== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedtledrfeeigdeikecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfhuthenuceurghilhhouhhtmecufedt tdenucenucfjughrpegfhffvufffkfggtgesthdtredttdertdenucfhrhhomhepffhimh grucfmohhgrghnuceoughimhgrsehsvggtrhgvthhsrghutggvrdhnvghtqeenucfkphep uddtjedrvddutddrvddufedrvdegfeenucfrrghrrghmpehmrghilhhfrhhomhepughimh grsehsvggtrhgvthhsrghutggvrdhnvghtnecuvehluhhsthgvrhfuihiivgeptd X-ME-Proxy: Original-Received: from scrawny (107-210-213-243.lightspeed.irvnca.sbcglobal.net [107.210.213.243]) by mail.messagingengine.com (Postfix) with ESMTPA id 0B33A100B8 for ; Fri, 11 Jan 2019 23:16:07 -0500 (EST) Original-Received: from dima by scrawny with local (Exim 4.91) (envelope-from ) id 1giAiL-0000sT-0A for emacs-devel@gnu.org; Fri, 11 Jan 2019 20:16:05 -0800 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 66.111.4.25 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 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.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:232317 Archived-At: Hi. There were some diff-mode updates recently that (I think) are making emacs really slow under some conditions. Scenario: - I'm working on a remote project via TRAMP and SSH - There're a number of local changes - I hit C-x v D (vc-root-diff) This runs something like "git diff" remotely. That command constructs a patch. Previously emacs would simply load this patch into a buffer, fontify it, and call it done. I THINK what's happening now is that in addition, each file mentioned in the patch is loaded by emacs. I don't know what emacs is doing with those files, but file loading is potentially very slow with TRAMP, and we shouldn't be doing this by default. I haven't dug deeply here at all. I just see that after hitting C-x v D I now have to sit here for a few minutes while emacs figures out what it's doing. Is it loading all the files? Why? I'm not subscribed to the list right now, so please Cc me in replies. Thanks! dima