From: Ihor Radchenko <yantar92@posteo.net>
To: Eli Zaretskii <eliz@gnu.org>
Cc: 62780@debbugs.gnu.org
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 [thread overview]
Message-ID: <87bkjsf72g.fsf@localhost> (raw)
In-Reply-To: <83bkjt8t4l.fsf@gnu.org>
Eli Zaretskii <eliz@gnu.org> 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 <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>
next prev parent reply other threads:[~2023-04-13 9:46 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-04-11 18:52 bug#62780: 30.0.50; Redisplay gets slow when using Org tables + show-trailing-whitespace Ihor Radchenko
2023-04-11 19:25 ` Eli Zaretskii
2023-04-11 19:41 ` Ihor Radchenko
2023-04-12 7:19 ` Eli Zaretskii
2023-04-12 7:39 ` Ihor Radchenko
2023-04-12 7:58 ` Eli Zaretskii
2023-04-13 9:46 ` Ihor Radchenko [this message]
2023-04-13 10:45 ` Eli Zaretskii
2023-04-13 11:15 ` Ihor Radchenko
2023-04-13 14:33 ` Eli Zaretskii
2023-04-14 9:20 ` Ihor Radchenko
2023-04-14 10:37 ` Eli Zaretskii
2023-04-14 11:36 ` Ihor Radchenko
2023-04-14 12:06 ` Eli Zaretskii
2023-04-14 12:23 ` Eli Zaretskii
2023-04-14 12:52 ` Ihor Radchenko
2023-04-14 13:51 ` Eli Zaretskii
2023-04-14 13:56 ` Ihor Radchenko
2023-04-14 14:47 ` Eli Zaretskii
2023-04-14 14:56 ` Ihor Radchenko
2023-04-14 15:06 ` Eli Zaretskii
2023-04-14 15:23 ` Ihor Radchenko
2023-04-14 12:28 ` Ihor Radchenko
2023-04-29 8:57 ` Eli Zaretskii
2023-04-29 18:03 ` Ihor Radchenko
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87bkjsf72g.fsf@localhost \
--to=yantar92@posteo.net \
--cc=62780@debbugs.gnu.org \
--cc=eliz@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.