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: Thu, 13 Apr 2023 09:46:31 +0000 Message-ID: <87bkjsf72g.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="1994"; 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 Thu Apr 13 11:45: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 1pmtW3-0000He-8p for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 13 Apr 2023 11:45:19 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pmtVr-00026C-Tw; Thu, 13 Apr 2023 05:45:08 -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 1pmtVm-00025p-Vp for bug-gnu-emacs@gnu.org; Thu, 13 Apr 2023 05:45: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 1pmtVm-0003LF-MZ for bug-gnu-emacs@gnu.org; Thu, 13 Apr 2023 05:45:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pmtVm-0008QF-AI for bug-gnu-emacs@gnu.org; Thu, 13 Apr 2023 05:45: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: Thu, 13 Apr 2023 09:45: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.168137905532303 (code B ref 62780); Thu, 13 Apr 2023 09:45:02 +0000 Original-Received: (at 62780) by debbugs.gnu.org; 13 Apr 2023 09:44:15 +0000 Original-Received: from localhost ([127.0.0.1]:42543 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pmtV0-0008Ow-UB for submit@debbugs.gnu.org; Thu, 13 Apr 2023 05:44:15 -0400 Original-Received: from mout01.posteo.de ([185.67.36.65]:45089) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pmtUx-0008Of-L4 for 62780@debbugs.gnu.org; Thu, 13 Apr 2023 05:44:12 -0400 Original-Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id D27032401FB for <62780@debbugs.gnu.org>; Thu, 13 Apr 2023 11:44:05 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1681379045; bh=q9KHG5EgvQW8zyLzQe64lAa90FS7hXk+89Ix5NQ8Xh0=; h=From:To:Cc:Subject:Date:From; b=B5WmFGrdKs4H5CtAKGO2RAC93LRVQBXPCedZmC7FGdNingbxSx1u/VhwmRE79H+tw BKJOHGWMV2YQAZ4YU+PJlMz3I3YLwnQ3JJK0sKfV6t2JrtJ3qY9rA1VWN/A1Ek7U4Y yTjXACEEXytDJUGmg6/WIPJmxCPM3hdTQd+NGSm1HXiJb2C7/ttqxRJwyLyWDwvldU Bvg72ztzwAEJZ3vLTdtIrICzJr4paiQz3iC3ffnoRMEJfvy3tMZaZqZblFMyc485MT /SaiH0dYrL43ZnWF9FwsY0nPPBgYkEMWk1gUBfYfKCKeHEObRqWFIW2HufZWQAxfzO XmSvAissrwHJQ== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4PxvmP1cV2z6tsf; Thu, 13 Apr 2023 11:44:05 +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:259843 Archived-At: Eli Zaretskii writes: > 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. Here are perf results when typing, using the same recipe. Full summary: 29.89% emacs emacs [.] lookup_char_property 16.58% emacs emacs [.] next_interval 13.99% emacs emacs [.] Fassq 5.44% emacs emacs [.] find_interval 5.17% emacs emacs [.] Fcdr 3.97% emacs emacs [.] Fnext_single_property_change 2.32% emacs emacs [.] composition_compute_stop_pos 1.51% emacs emacs [.] validate_interval_range 1.03% emacs emacs [.] get_char_property_and_overlay 0.99% emacs emacs [.] textget 0.79% emacs emacs [.] plist_get 0.77% emacs emacs [.] produce_stretch_glyph 0.76% emacs emacs [.] balance_an_interval 0.54% emacs emacs [.] lface_hash Call graph: (next_interval is spread thin across the call graph, used all over the place) 99.10%--command_loop_1 97.65%--read_key_sequence 97.55%--read_char 97.51%--redisplay redisplay_internal 97.49%--redisplay_windows internal_condition_case_1 redisplay_window_0 97.49%--redisplay_window |65.03%--try_window ||32.55%--display_line || 28.90%--get_next_display_element || 28.83%--next_element_from_buffer || 28.75%--handle_stop || 23.87%--compute_stop_pos || 23.52%--composition_compute_stop_pos || 21.61%--find_composition || 21.31%--Fnext_single_property_change || 17.84%--textget || 16.84%--lookup_char_property || 6.15%--builtin_lisp_symbol || 5.28%--make_lisp_symbol || 5.94%--Fassq || 32.47%--partial_line_height move_it_to | 31.11%--move_it_in_display_line_to | 28.95%--get_next_display_element | 28.86%--next_element_from_buffer | 28.80%--handle_stop | ... 16.75%--lookup_char_property |32.42%--set_vertical_scroll_bar 32.41%--move_it_to 31.05%--move_it_in_display_line_to 28.86%--get_next_display_element ... 16.54%--lookup_char_property -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at