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: Wed, 12 Apr 2023 07:39:37 +0000 Message-ID: <87edop8s7a.fsf@localhost> References: <87mt3e8d50.fsf@localhost> <83y1my8bmi.fsf@gnu.org> <87h6tm8awi.fsf@localhost> <83bkjt8t4l.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="4309"; 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 Wed Apr 12 09:38:26 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 1pmV3g-0000uS-Ln for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 12 Apr 2023 09:38:24 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pmV3P-0003W6-Rg; Wed, 12 Apr 2023 03:38:07 -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 1pmV3L-0003Vw-BW for bug-gnu-emacs@gnu.org; Wed, 12 Apr 2023 03:38:03 -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 1pmV3L-00078Z-1P for bug-gnu-emacs@gnu.org; Wed, 12 Apr 2023 03:38:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pmV3K-0001z4-GS for bug-gnu-emacs@gnu.org; Wed, 12 Apr 2023 03:38: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: Wed, 12 Apr 2023 07:38: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.16812850427573 (code B ref 62780); Wed, 12 Apr 2023 07:38:02 +0000 Original-Received: (at 62780) by debbugs.gnu.org; 12 Apr 2023 07:37:22 +0000 Original-Received: from localhost ([127.0.0.1]:38902 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pmV2g-0001y4-7S for submit@debbugs.gnu.org; Wed, 12 Apr 2023 03:37:22 -0400 Original-Received: from mout01.posteo.de ([185.67.36.65]:44169) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pmV2c-0001xo-LQ for 62780@debbugs.gnu.org; Wed, 12 Apr 2023 03:37:21 -0400 Original-Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 270082401BD for <62780@debbugs.gnu.org>; Wed, 12 Apr 2023 09:37:13 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1681285033; bh=uQrAbt+WAv8awox7S/uO9VstM9jenVUqfXz658Z2pIk=; h=From:To:Cc:Subject:Date:From; b=kjGwrryJaNTPMQ3BVZWOUOBbsO0Njy65nIAxOyUS8hFu9v9PQJwcC0D2a05cBSESQ cAIG8qbxlm8eZtTmaOLz/6MSXxIb4MUk1MtBSsFxcrvX5j0dqhGYUNzVFh5tK0bAzH zx5Zv2FceuPhivyt/cGO2wCGEKvBy5CksVxddsMAuyA2dXxgAs2BiWgFvV6jCEsyWM QNSgJxUPM/SGPxVj75ERGzrFfGNaNi48DXcWcGxOKlD0cYjfQiUzNpFuy+ygTeju0T /4cFU/8N8HewAvavU+UT/dcQlnbg4ULYguKOMO8cAaKbZ+6bIh3MtiWrjrm2l5Dzne zS93YE/5t//Rw== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4PxF0S4JSBz6tsg; Wed, 12 Apr 2023 09:37:12 +0200 (CEST) In-Reply-To: <83bkjt8t4l.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:259702 Archived-At: Eli Zaretskii writes: >> Maybe there is a better way? > > Maybe. Can you point me to the discussion which caused you to use > these display properties there? I think this was done in two steps: > first you added the same display property as pre and post, then made > them subtly different; I need to re-read the discussions that led to > both of these. The first step was in https://lists.gnu.org/archive/html/emacs-orgmode/2017-12/msg00526.html Then, we had an issue with empty cells || with Emacs joining two spaces with eq text properties. https://debbugs.gnu.org/cgi/bugreport.cgi?bug=45915 >> 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? > > See above: show-trailing-whitespace is not the main culprit here; > these particular display properties are. If you could produce a perf > profile with this recipe, it might give ideas for speeding up the C > code without any changes on the Lisp level. Ok. I will look into it. If we can speed this up, it will hopefully benefit more than just this particular scenario. > Btw, these properties were introduced into org-table.el some time ago, > so how come this issue comes up only now? Aren't Org tables used > quite a lot? I guess things are not that much obvious without show-trailing-whitespace. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at