From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#16830: [Bug] 24.3.50; massive slow down in forward-line Date: Sat, 22 Feb 2014 13:29:48 +0200 Message-ID: <831tyv4c7n.fsf@gnu.org> References: <20140221121606.GO7560@pille.home> <83lhx44pep.fsf@gnu.org> <20140221155119.GP7560@pille.home> <20140222083926.GC27381@pille.home> <838ut34ib3.fsf@gnu.org> <20140222110857.GF27381@pille.home> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1393068612 21987 80.91.229.3 (22 Feb 2014 11:30:12 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 22 Feb 2014 11:30:12 +0000 (UTC) Cc: 16830@debbugs.gnu.org To: "Stefan-W. Hahn" Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Feb 22 12:30:19 2014 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1WHAmh-00047Z-MT for geb-bug-gnu-emacs@m.gmane.org; Sat, 22 Feb 2014 12:30:19 +0100 Original-Received: from localhost ([::1]:49108 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WHAmg-0007Gz-Pj for geb-bug-gnu-emacs@m.gmane.org; Sat, 22 Feb 2014 06:30:18 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46197) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WHAmY-0007A2-AF for bug-gnu-emacs@gnu.org; Sat, 22 Feb 2014 06:30:15 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WHAmT-0000vS-1k for bug-gnu-emacs@gnu.org; Sat, 22 Feb 2014 06:30:10 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:34220) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WHAmS-0000u9-Tl for bug-gnu-emacs@gnu.org; Sat, 22 Feb 2014 06:30:05 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1WHAmR-00005h-1t for bug-gnu-emacs@gnu.org; Sat, 22 Feb 2014 06:30:03 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 22 Feb 2014 11:30:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 16830 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 16830-submit@debbugs.gnu.org id=B16830.139306858032716 (code B ref 16830); Sat, 22 Feb 2014 11:30:02 +0000 Original-Received: (at 16830) by debbugs.gnu.org; 22 Feb 2014 11:29:40 +0000 Original-Received: from localhost ([127.0.0.1]:35402 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WHAm3-0008VZ-TT for submit@debbugs.gnu.org; Sat, 22 Feb 2014 06:29:40 -0500 Original-Received: from mtaout29.012.net.il ([80.179.55.185]:40614) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WHAlz-0008Uy-E4 for 16830@debbugs.gnu.org; Sat, 22 Feb 2014 06:29:37 -0500 Original-Received: from conversion-daemon.mtaout29.012.net.il by mtaout29.012.net.il (HyperSendmail v2007.08) id <0N1E00B009VO8800@mtaout29.012.net.il> for 16830@debbugs.gnu.org; Sat, 22 Feb 2014 13:32:09 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by mtaout29.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0N1E009KNAPKXH40@mtaout29.012.net.il>; Sat, 22 Feb 2014 13:32:09 +0200 (IST) In-reply-to: <20140222110857.GF27381@pille.home> X-012-Sender: halo1@inter.net.il X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.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-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:86013 Archived-At: > Date: Sat, 22 Feb 2014 12:08:58 +0100 > From: "Stefan-W. Hahn" > Cc: 16830@debbugs.gnu.org > > > OK, I can confirm the slow-down. The profile points to forward-line, > > so I disabled cache-long-scans, and -- lo and behold -- the slowdown > > went away. So this should be the workaround for the time being. > > Sounds good. Is it right that I can set this variable globally only by > installing a function setting it in find-file-hook? Doesn't sound like a good idea to me: that would disable the caching for much more than this Org file, or even just Org files, right? I would suggest to selectively disable caching only for those files that are actually affected in perceptible way, because the caching in general does speed up things. > I tested it that way with my original file. > (elp-instrument-package org; elp-result for org-ctrl-c-ctrl-c) > > emacs 24.3.50.1 2.083 sec (cache-long-scans nil, set by file-find-hook) > emacs 24.3.1 0.758 sec (cache-long-line-scan nil; as it was) > > So it is better, but not so good as in the old emacs. I see no difference in the code that could justify this, and on my system "C-c C-c" in both versions completes in the same time after disabling the caching, certainly much faster than 2 sec. So I don't see how such a 2.5 factor could be explained, except perhaps by some additional local customizations on your system (I tested in "emacs -Q").