From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: follow-mode: extremely slow in combination with org-mode Date: Sun, 17 Jun 2018 18:10:49 +0300 Message-ID: <83d0wptpmu.fsf@gnu.org> References: <87zhzvc9km.fsf@tu-berlin.de> <83r2l7yn52.fsf@gnu.org> <87y3fedgnq.fsf@tu-berlin.de> <838t7ezokb.fsf@gnu.org> <877emx3not.fsf@tu-berlin.de> <83lgbdu8zs.fsf@gnu.org> <20180617111333.GA12093@ACM> <83k1qxtvkt.fsf@gnu.org> <87tvq1qx6n.fsf@tu-berlin.de> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1529248138 30715 195.159.176.226 (17 Jun 2018 15:08:58 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 17 Jun 2018 15:08:58 +0000 (UTC) Cc: acm@muc.de, emacs-devel@gnu.org To: Gerald Wildgruber Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Jun 17 17:08:53 2018 Return-path: Envelope-to: ged-emacs-devel@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 1fUZIT-0007tG-Fu for ged-emacs-devel@m.gmane.org; Sun, 17 Jun 2018 17:08:53 +0200 Original-Received: from localhost ([::1]:55557 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fUZKa-0006LM-H8 for ged-emacs-devel@m.gmane.org; Sun, 17 Jun 2018 11:11:04 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38306) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fUZKT-0006LF-8H for emacs-devel@gnu.org; Sun, 17 Jun 2018 11:10:59 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fUZKO-0006kj-Vh for emacs-devel@gnu.org; Sun, 17 Jun 2018 11:10:57 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:50291) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fUZKO-0006kV-Rr; Sun, 17 Jun 2018 11:10:52 -0400 Original-Received: from [176.228.60.248] (port=2971 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1fUZKO-0008QE-9V; Sun, 17 Jun 2018 11:10:52 -0400 In-reply-to: <87tvq1qx6n.fsf@tu-berlin.de> (message from Gerald Wildgruber on Sun, 17 Jun 2018 16:56:00 +0200) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e 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:226411 Archived-At: > From: Gerald Wildgruber > CC: Alan Mackenzie , > Date: Sun, 17 Jun 2018 16:56:00 +0200 > > I byte compiled the patched follow.el restarted emacs and began editing. > > It actually seems somewhat faster, though not enormously; If the speedup is not significant, then I guess there are other factors at work, although the profile seemed to show I was eliminating the hottest function calls. > I will continue working with this patched version to see how it > goes; I have a more problematic (=slower) machine in my office, and > I'm am eager to see, if it makes a difference there; at home, where > I'm testing right now, its a new quad core xeon with 64gb of ram, -- > and it is kind of strange that with such a machine fans start very > audibly as soon as you start TYPING (not video editing or the like) > :-) Each character you insert triggers redisplay, and I'm guessing follow-mode has many of the redisplay optimizations disabled. But it may be interesting to see a profile when all you do is type self-inserting characters, maybe we will learn something important from that. > One more observation: it might be that the slowing down becomes more > noticeable, the closer point gets to the bottom of the last window > (lower right edge of my five-fold splitted emacs frame), but I couldn't > reproduce this consistently. This could be due to follow-calc-win-start, which loops over windows. Or maybe there's another loop. Again, a profile might tell something interesting. > Please count on me for any other testing that might be necessary! I'm no > programmer but will do my best to deliver usable results. > > Here's how the profile looks now, with the patched, uncompiled follow.el > loaded right before profiling: Thanks.