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: Sat, 16 Jun 2018 14:41:13 +0300 Message-ID: <83r2l7yn52.fsf@gnu.org> References: <87zhzvc9km.fsf@tu-berlin.de> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1529149204 15975 195.159.176.226 (16 Jun 2018 11:40:04 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 16 Jun 2018 11:40:04 +0000 (UTC) Cc: emacs-devel@gnu.org To: Gerald Wildgruber Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Jun 16 13:40:00 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 1fU9Ym-00041F-5u for ged-emacs-devel@m.gmane.org; Sat, 16 Jun 2018 13:40:00 +0200 Original-Received: from localhost ([::1]:51115 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fU9at-0000su-2s for ged-emacs-devel@m.gmane.org; Sat, 16 Jun 2018 07:42:11 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34142) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fU9aC-0000sn-SD for emacs-devel@gnu.org; Sat, 16 Jun 2018 07:41:29 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fU9a7-0008Ss-Ua for emacs-devel@gnu.org; Sat, 16 Jun 2018 07:41:28 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:35683) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fU9a7-0008SZ-PU; Sat, 16 Jun 2018 07:41:23 -0400 Original-Received: from [176.228.60.248] (port=3247 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1fU9a6-0006tz-Ig; Sat, 16 Jun 2018 07:41:22 -0400 In-reply-to: <87zhzvc9km.fsf@tu-berlin.de> (message from Gerald Wildgruber on Sat, 16 Jun 2018 12:25:13 +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:226354 Archived-At: > From: Gerald Wildgruber > Date: Sat, 16 Jun 2018 12:25:13 +0200 > > - follow-post-command-hook 7755 41% > - follow-adjust-window 7755 41% > - follow-windows-start-end 7732 41% > - follow-calc-win-end 7732 41% > + pos-visible-in-window-p 25 0% > + posn-at-x-y 7 0% > + window-inside-pixel-edges 3 0% > + follow-all-followers 4 0% > follow-avoid-tail-recenter 3 0% > > If I understand correctly "follow-calc-win-end" would be the function > that uses most of cpu time. Yes, it looks like that. For even more detailed results, repeat the experiment after loading the uncompiled follow.el. > Anyone got an idea what's going on here and how to debug that? Are there > possible optimizations with this situation? Or is this "normal", > expected behavior, simply due to the number of windows and text > displayed? If you "show all" in the Org buffer, do the lags become significantly smaller?