From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#62780: 30.0.50; Redisplay gets slow when using Org tables + show-trailing-whitespace Date: Sat, 29 Apr 2023 11:57:51 +0300 Message-ID: <835y9fqd4g.fsf@gnu.org> References: <87mt3e8d50.fsf@localhost> <83y1my8bmi.fsf@gnu.org> <87h6tm8awi.fsf@localhost> <83bkjt8t4l.fsf@gnu.org> <87bkjsf72g.fsf@localhost> <83ttxk3vt8.fsf@gnu.org> <873554f2ye.fsf@localhost> <83sfd34ztm.fsf@gnu.org> <87zg7an7lq.fsf@localhost> <83ttxig375.fsf@gnu.org> <87pm86n1au.fsf@localhost> <83pm86fz2e.fsf@gnu.org> <87edommyvq.fsf@localhost> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="4104"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 62780@debbugs.gnu.org To: Ihor Radchenko Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Apr 29 10:58:21 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 1psgPN-0000uJ-NP for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 29 Apr 2023 10:58:21 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1psgP6-0001sM-6w; Sat, 29 Apr 2023 04:58: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 1psgP5-0001s9-0M for bug-gnu-emacs@gnu.org; Sat, 29 Apr 2023 04:58: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 1psgP4-0007BD-IF for bug-gnu-emacs@gnu.org; Sat, 29 Apr 2023 04:58:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1psgP4-0001ZL-AO for bug-gnu-emacs@gnu.org; Sat, 29 Apr 2023 04:58:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 29 Apr 2023 08:58: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.16827586635989 (code B ref 62780); Sat, 29 Apr 2023 08:58:02 +0000 Original-Received: (at 62780) by debbugs.gnu.org; 29 Apr 2023 08:57:43 +0000 Original-Received: from localhost ([127.0.0.1]:35214 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1psgOl-0001YX-Ff for submit@debbugs.gnu.org; Sat, 29 Apr 2023 04:57:43 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:34206) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1psgOe-0001YD-Ik for 62780@debbugs.gnu.org; Sat, 29 Apr 2023 04:57:41 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1psgOX-00078p-N5; Sat, 29 Apr 2023 04:57:29 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=/LuRCxx2du7Kz+gsmUeLn08OfTwrXOJ+jNrqmPjUukE=; b=nxoFrZPvM7ihAvuII5Zo YZ969iEQ+JOSC0X2fCcFx4tiJprX/57yTz91i0GGyrT1TKYx0RGPpY2ziVUVjL5huJ9Cadh3TRSIX vmbv1QYyLUm2V29cW91rhrecc4YZsGbNLRCs2E91ZdH5LFkODQC2lu7H1MPkZ3tNP8zcogPmgx3FG EeaB8BgKYEZAOop3k/lAgYg1jwbt/FDufvPb6y/MXliESEwpNIOsypxJJ1H1TrReAT4/hZ+4TRb/P tgU/ReC0DVOcp+khF1cGtBnfuI1+UAhxzKeVFF8hqcykM9IysoMqRWueYEYNN1W0ywzGNypwrHy9G 2T+WMfg6c671ZA==; Original-Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1psgOJ-0003OI-5W; Sat, 29 Apr 2023 04:57:29 -0400 In-Reply-To: <87edommyvq.fsf@localhost> (message from Ihor Radchenko on Fri, 14 Apr 2023 12:28:25 +0000) 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:260804 Archived-At: > From: Ihor Radchenko > Cc: 62780@debbugs.gnu.org > Date: Fri, 14 Apr 2023 12:28:25 +0000 > > Eli Zaretskii writes: > > > But to test this idea, I need enough test cases that use the > > 'composition' property to make sure the property still works after I > > disable that call. Can you collect a few test cases which use the > > 'composition' property, with or without Org tables? I guess > > prettify-symbols-mode is one of them, but are there others? I will > > then try to find time to test this idea. > > 1. The most obvious is prettify-symbols-mode in Emacs sources > Say, (setq-local prettify-symbols-alist '(("!" . ?¬)) M-x > prettify-symbols-mode > > 2. https://github.com/integral-dw/org-superstar-mode > You can use tests/*.org example files > Also, https://github.com/jdtsmith/shakespeare.org has a giant example > Org file. And https://github.com/casouri/valign/blob/master/test.org > has a number of example tables (though the package itself does not > use composition). > > 3. Typing using TeX input method will produce composed glyphs. The same > if you set org-pretty-entities to t and then type \alpha, \beta, etc > in Org buffers. > > 4. Composing long spans of text might be a reasonable edge case to test. Thanks, and apologies for the long delay. I've now installed on master several optimizations related to search of composable characters by the display engine. I tested some of the above scenarios (not all of them), and they seem to work as well as before. Do these changes make significant improvements in redisplay speed in org-table buffers? If not, can you tell me where are the hot spots after these changes? Also, if you see any regressions due to these changes, please report them. I will keep this bug open for now.