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: Fri, 14 Apr 2023 13:37:02 +0300 Message-ID: <83ttxig375.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> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="7741"; 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 Fri Apr 14 12:38: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 1pnGp2-0001pA-ID for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 14 Apr 2023 12:38:28 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pnGog-0006rJ-Ai; Fri, 14 Apr 2023 06:38:06 -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 1pnGoc-0006r4-Tr for bug-gnu-emacs@gnu.org; Fri, 14 Apr 2023 06: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 1pnGoc-0005VL-H7 for bug-gnu-emacs@gnu.org; Fri, 14 Apr 2023 06:38:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pnGob-0001VT-Ro for bug-gnu-emacs@gnu.org; Fri, 14 Apr 2023 06:38:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 14 Apr 2023 10:38:01 +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.16814686435742 (code B ref 62780); Fri, 14 Apr 2023 10:38:01 +0000 Original-Received: (at 62780) by debbugs.gnu.org; 14 Apr 2023 10:37:23 +0000 Original-Received: from localhost ([127.0.0.1]:45613 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pnGny-0001UY-UD for submit@debbugs.gnu.org; Fri, 14 Apr 2023 06:37:23 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:35772) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pnGnn-0001U7-Da for 62780@debbugs.gnu.org; Fri, 14 Apr 2023 06:37:21 -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 1pnGnh-0005G8-TL; Fri, 14 Apr 2023 06:37:05 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=6jTLJOFPDCe+Ums3T6PkiLTVGnJ1HGMRHmy/JS4aEdI=; b=WxzqPI+aPy2s mzzeJGA9b6v2P32hx+ubLVBlljVASAptaEnGaLrJWf1jgOlgubX9DHRg3+ioqGHaZbuHeLvw3uONB 7m59LmTXUyKj7jjYpB0B18c3zSPJtOc0AOBzgHUew5ibPqUZRyglZK9HBUE1vyCGa7H70SbEOE8jo JmzKtHmZViC6x5Njn31Xa0IpkEkVJMYU7Y1Qu2DSD1WUUlcKmGmeA3y6gaRQ+Lf8PdaiggG04/cdk 3MPMMWRt8zQ9FFFe9SW20PfpmPwXoQ7FcqsgH4nEd24YuQ5Peena/apgq9CNwkpmunm7mjtzhRQ3U nx4rxfWRF/v2+FBexyoH5w==; 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 1pnGnh-0001TC-9e; Fri, 14 Apr 2023 06:37:05 -0400 In-Reply-To: <87zg7an7lq.fsf@localhost> (message from Ihor Radchenko on Fri, 14 Apr 2023 09:20:01 +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:259899 Archived-At: > From: Ihor Radchenko > Cc: 62780@debbugs.gnu.org > Date: Fri, 14 Apr 2023 09:20:01 +0000 > > Eli Zaretskii writes: > > > Moreover, I just disabled static compositions completely, by making > > find_composition return zero immediately, which basically avoids the > > calls to next/previous-single-property-change which search for > > 'composition' property, and I still see quite a significant slowdown > > with the recipe of this bug (50x30 org-table). Can you reproduce > > this? If you can, what does the profile say now? > > I cannot reproduce. > The typing has no noticeable delays. Your build is optimized, yes? Try building without optimizations, you will see quite significant delays just by creating the table. In any case, if you think disabling static composition can be a reasonable option for Org Table users (do they use prettify-symbols-mode, for example, in the same buffer where they have Org tables?), that should be easy. > Is it a problem to keep multiple interval trees: one for all properties, > and several for individual properties? Yes, I think so, because search for any non-nil properties will be greatly complicated. But if someone wants to work on such a split, and can present working code, I won't reject it without testing.