From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Ihor Radchenko Newsgroups: gmane.emacs.bugs Subject: bug#62780: 30.0.50; Redisplay gets slow when using Org tables + show-trailing-whitespace Date: Tue, 11 Apr 2023 19:41:01 +0000 Message-ID: <87h6tm8awi.fsf@localhost> References: <87mt3e8d50.fsf@localhost> <83y1my8bmi.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="10804"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 62780@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Apr 11 21:39:29 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pmJpw-0002cT-Rk for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 11 Apr 2023 21:39:28 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pmJpY-0005ND-7o; Tue, 11 Apr 2023 15:39:04 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pmJpW-0005Mu-Sf for bug-gnu-emacs@gnu.org; Tue, 11 Apr 2023 15:39:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pmJpW-0000Ml-KM for bug-gnu-emacs@gnu.org; Tue, 11 Apr 2023 15:39:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pmJpW-0007T3-FA for bug-gnu-emacs@gnu.org; Tue, 11 Apr 2023 15:39:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Ihor Radchenko Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 11 Apr 2023 19:39:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 62780 X-GNU-PR-Package: emacs Original-Received: via spool by 62780-submit@debbugs.gnu.org id=B62780.168124192128671 (code B ref 62780); Tue, 11 Apr 2023 19:39:02 +0000 Original-Received: (at 62780) by debbugs.gnu.org; 11 Apr 2023 19:38:41 +0000 Original-Received: from localhost ([127.0.0.1]:38298 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pmJpB-0007SN-3J for submit@debbugs.gnu.org; Tue, 11 Apr 2023 15:38:41 -0400 Original-Received: from mout02.posteo.de ([185.67.36.66]:43417) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pmJp8-0007S7-DC for 62780@debbugs.gnu.org; Tue, 11 Apr 2023 15:38:38 -0400 Original-Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id B3C0824013F for <62780@debbugs.gnu.org>; Tue, 11 Apr 2023 21:38:32 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1681241912; bh=JFqQ67xTgcVvGFmr45TMH9iG2cpYZBxliYTSbKUO59s=; h=From:To:Cc:Subject:Date:From; b=QUNzszmwHU3oiRhlEkyrvimlCIR87YA2lYX6aMmU0KouodlhWEshG887apF8WZjmy PRErvk2FyyDsEs+NqKnxa2xF8XHbmK9Rasq8jgIhavJk3yKViFhcIkop5+NbHw5gCu 1TBL0XjHpbggILgWBgpCtNs9UgwnCmcEEHK4VlhIQE0Wq6+58JL4Sv4oDL7MRugY3k EOnvGDsSpAndXrM1CkuNAqsX/xvdp7GgIIJREy0wg3GR9QjJZuDYAnf2Xrj4m4LErv OThg7Io3LKQCQuaNifXdCXuszle/jU7ufdutwd1BOSsCvzpVKxl/C19R0scalhJhN3 bTQ3jv8oCFihg== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Pwx3D08qnz9rxP; Tue, 11 Apr 2023 21:38:31 +0200 (CEST) In-Reply-To: <83y1my8bmi.fsf@gnu.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:259673 Archived-At: Eli Zaretskii writes: > show-trailing-whitespace disables quite a few redisplay optimizations, > including even the cursor-motion optimization (when nothing has > changed on display except the position of point). And full thorough > redisplay becomes slow when you have relatively long lines, because > Emacs is forced to consider all of them. Well. But it is not even that big of a file. And the lines are shorter than window width. I could understand Emacs lagging on some really large file or long lines, but this does not look large at all! > In addition, org-table seems to put a large number of 'display' > properties (like, 2 per cell?), which also slows down redisplay. These properties are for the purpose of bidirectional ordering: (defconst org-table--separator-space-pre (propertize " " 'display '(space :relative-width 1)) "Space used in front of fields when aligning the table. This space serves as a segment separator for the purposes of the bidirectional reordering. Note that `org-table--separator-space-pre' is not `eq' to `org-table--separator-space-post'. This is done to prevent Emacs from visually merging spaces in an empty table cell. See bug#45915.") Maybe there is a better way? > Are you saying there's been a regression in Emacs 30 in this situation > wrt Emacs 29 and Emacs 28? I don't think I see a regression in my > testing here. No, I do not mean a regression. But the slowdown appears to be unreasonable for such a small test case. What is the point having `show-trailing-whitespace' if it is this much inefficient? Maybe a simple font-lock rule can be better? -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at