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 18:06:29 +0300 Message-ID: <83bkjqfqq2.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> <83mt3afy90.fsf@gnu.org> <878reumxrj.fsf@localhost> <83fs92fu7n.fsf@gnu.org> <873552mus8.fsf@localhost> <83edomfrlk.fsf@gnu.org> <87zg7aldgy.fsf@localhost> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="3084"; 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 17:07:22 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 1pnL1F-0000bu-Gs for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 14 Apr 2023 17:07:21 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pnL0y-00028A-9Z; Fri, 14 Apr 2023 11:07: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 1pnL0w-00027h-UZ for bug-gnu-emacs@gnu.org; Fri, 14 Apr 2023 11:07: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 1pnL0w-0003Ki-L8 for bug-gnu-emacs@gnu.org; Fri, 14 Apr 2023 11:07:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pnL0w-0006Rt-5X for bug-gnu-emacs@gnu.org; Fri, 14 Apr 2023 11:07: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: Fri, 14 Apr 2023 15:07: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.168148480124756 (code B ref 62780); Fri, 14 Apr 2023 15:07:02 +0000 Original-Received: (at 62780) by debbugs.gnu.org; 14 Apr 2023 15:06:41 +0000 Original-Received: from localhost ([127.0.0.1]:47298 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pnL0a-0006RE-Jo for submit@debbugs.gnu.org; Fri, 14 Apr 2023 11:06:40 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:39236) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pnL0Y-0006Qu-QP for 62780@debbugs.gnu.org; Fri, 14 Apr 2023 11:06:39 -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 1pnL0S-0003BU-90; Fri, 14 Apr 2023 11:06:32 -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=BnAv13ZcDFPSNqGzYK0T5R+RyjsRP6Sjz7B1SRrci0A=; b=NwH1F93xxCcP WBgCDNZogywwg7CFv2/eijfW41uyKu0sJ0ct9CgL51gUzEMbRNF06NnAsVePyBMDfI7tDgWpuIjai WvcpGYFc34nvOz6YFyGPrKxWyMWsqg674axvqtr/vlXdRu/jAfG03iXbPKvnwQ/MeFf2KgUzQmEuS SoNBeg/Jn2kOj/xOWNVYb5APohUti7hy8HBRyLlfBs33PpE319DeI9PiGVkck3jdo7iUAVtxCk+zG tVAdIDOtyQ2zVpI4TcW24zU0AqjYD7XnbkwQamCR74/4ko19mxfWp1vvE8YkZwNE6S59tmuqdx20i ml0FX8PttQLxXTSP+4rq1Q==; 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 1pnL0R-0008Fd-P1; Fri, 14 Apr 2023 11:06:32 -0400 In-Reply-To: <87zg7aldgy.fsf@localhost> (message from Ihor Radchenko on Fri, 14 Apr 2023 14:56:13 +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:259927 Archived-At: > From: Ihor Radchenko > Cc: 62780@debbugs.gnu.org > Date: Fri, 14 Apr 2023 14:56:13 +0000 > > Eli Zaretskii writes: > > >> I see. But can the same limit be re-used for static compositions? > > > > Which limit is that? > > I am referring to limit in compute_stop_pos. It is unused > when calling composition_compute_stop_pos. You want to reduce the limit inside composition_compute_stop_pos from 500 to 100? If you try that, does it speed up this scenario enough to consider such a change? > Of course, if your idea with completely bypassing > composition_compute_stop_pos call works, it will be even better. We cannot bypass composition_compute_stop_pos in compute_stop_pos, because it also looks for auto-composable characters, those controlled by composition-function-table. But I think we _can_ avoid calling find_composition from composition_compute_stop_pos in this particular case.