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: Tue, 11 Apr 2023 22:25:25 +0300 Message-ID: <83y1my8bmi.fsf@gnu.org> References: <87mt3e8d50.fsf@localhost> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="25544"; 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 Tue Apr 11 21:26:20 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 1pmJdD-0006OW-LD for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 11 Apr 2023 21:26:19 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pmJd1-0002KY-Ud; Tue, 11 Apr 2023 15:26: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 1pmJcz-0002KH-Vv for bug-gnu-emacs@gnu.org; Tue, 11 Apr 2023 15:26:06 -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 1pmJcw-00054b-BG for bug-gnu-emacs@gnu.org; Tue, 11 Apr 2023 15:26:05 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pmJcv-00078p-Jh for bug-gnu-emacs@gnu.org; Tue, 11 Apr 2023 15:26: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: Tue, 11 Apr 2023 19:26: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.168124110327378 (code B ref 62780); Tue, 11 Apr 2023 19:26:01 +0000 Original-Received: (at 62780) by debbugs.gnu.org; 11 Apr 2023 19:25:03 +0000 Original-Received: from localhost ([127.0.0.1]:38266 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pmJbz-00077V-Ga for submit@debbugs.gnu.org; Tue, 11 Apr 2023 15:25:03 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:53914) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pmJbw-00076v-5m for 62780@debbugs.gnu.org; Tue, 11 Apr 2023 15:25:02 -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 1pmJbq-0004Zf-Da; Tue, 11 Apr 2023 15:24:54 -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=F5s4/Wm2nHMDCs5KsFg4L/vsTch641E/fUEcy5Y7O1o=; b=Amk/+Nej5gNd FbsWg+Yx5rR/gwxOVPx9coq/fnkA1hRxD+maNM4Sx6yyhiCbLPe1EFq7IJmjJS/MtND2T1lN84+ib uMS04f3M6evcGbnMyyObE0jLZw6kxBs/UfjOFxVKfZiBU5opxchNiFUMzL3d89XZfO0lB78ZgskUC gPn18EwTptIUEiO1sjq/xrygrsG3fWZ66Fqo0+D5c9c8kYbDsoiDpBsaJGv/PD5m22xMKf1MuGMo+ KBAOG6Xns9tz/jADIkjnn6fHlWlVmwU7Tq/OJ9Xk8+6pqN2mUnfIGCaYCrSvRGkzGOVGLIjU0cy0n y3n29qEAkOV2ZSPC5KDfGg==; 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 1pmJbe-0000AX-Gq; Tue, 11 Apr 2023 15:24:53 -0400 In-Reply-To: <87mt3e8d50.fsf@localhost> (message from Ihor Radchenko on Tue, 11 Apr 2023 18:52:43 +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:259668 Archived-At: > From: Ihor Radchenko > Date: Tue, 11 Apr 2023 18:52:43 +0000 > > 1. emacs -Q > 2. M-x org-mode > 3. M-x org-table-create 30x30 > 4. M-: (setq show-trailing-whitespace t) > 4. M-x org-table-insert-column (20x times) > 5. M-> type something > 6. Observe significant lag when typing. CPU profiler does not expose much. 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. In addition, org-table seems to put a large number of 'display' properties (like, 2 per cell?), which also slows down redisplay. 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.