From: "Gerd Möllmann" <gerd.moellmann@gmail.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: rpluim@gmail.com, rudalics@gmx.at, emacs-devel@gnu.org
Subject: Re: Question about üarent-frame changes
Date: Thu, 26 Sep 2024 06:54:44 +0200 [thread overview]
Message-ID: <m2o74b5817.fsf@pro2.fritz.box> (raw)
In-Reply-To: <m2setn61ug.fsf@pro2.fritz.box> ("Gerd Möllmann"'s message of "Wed, 25 Sep 2024 20:10:47 +0200")
Gerd Möllmann <gerd.moellmann@gmail.com> writes:
> Eli Zaretskii <eliz@gnu.org> writes:
>
>>> From: Gerd Möllmann <gerd.moellmann@gmail.com>
>>> Cc: martin rudalics <rudalics@gmx.at>, Emacs Devel <emacs-devel@gnu.org>
>>> Date: Wed, 25 Sep 2024 13:13:09 +0200
>>>
>>> > shows 24s with GUI, and 8s on tty. I'm using Alacritty, in case that matters
>>> > (for the KKP keyboard support, not for performance).
>>>
>>> Small correction - I had timed tty build with debug. It's actually 2s
>>> instead of 8s.
>>
>> Thanks. It would be interesting to know which part takes
>> significantly more time on GUI terminals wrt TTYs. A tenfold
>> performance difference should be easy to explain, I hope.
>
> I don't seem to get profiling to work on macOS 15 + Xcode 16 at the moment.
>
> Maybe someone else could run the benchmark I posted under perf? It
> should just work with an existing master, or 30, or 29 on GUIs.
Got at least something out of Instruments today. An example run in a
debug build with MPS shows as "Heaviest Stack Trace" this:
21.15 s 94,1 % 0 s Main Thread 0x158f26
18.63 s 82,9 % 0 s apply_lambda
12.11 s 53,9 % 0 s exec_byte_code
8.04 s 35,8 % 1.00 ms CA::Context::commit_transaction(CA::Transaction*, double, double*)
5.33 s 23,7 % 0 s CA::Layer::layout_if_needed(CA::Transaction*)
5.32 s 23,7 % 2.00 ms redisplay_internal
3.96 s 17,6 % 0 s redisplay_windows
3.56 s 15,8 % 0 s update_frame_tool_bar_1
2.62 s 11,6 % 0 s -[NSToolbar _setConfigurationFromDictionary:notifyFamilyAndUpdateDefaults:upgradedConfiguration:]
1.81 s 8,1 % 0 s -[NSToolbarView _layoutDirtyItemViewersAndTileToolbar]
854.00 ms 3,8 % 0 s -[NSToolbarView _configureItemViewersForLayoutIfNecessary]
669.00 ms 3,0 % 0 s -[NSToolbarItemViewer _configureViewerSize]
397.00 ms 1,8 % 0 s -[NSToolbarItem _scalableMinSize]
359.00 ms 1,6 % 0 s -[NSToolbarItem _itemViewMinSize:maxSize:stretchesContent:]
179.00 ms 0,8 % 0 s _nsis_frameInEngine
I think this this means that the window system itself takes a lot of the
time (CA::..., NS...), plus redisplay on GUI of course, which I would
expect to be a bit slower than on ttys, but mainly the window system.
That's also consistent with the fact that the times differ only a bit
between optimized and debug builds with checking=all.
Not much one can do about that, I guess. At least on macOS, it could
be different on other platforms of course.
next prev parent reply other threads:[~2024-09-26 4:54 UTC|newest]
Thread overview: 46+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-09-18 10:58 Question about üarent-frame changes Gerd Möllmann
2024-09-18 14:15 ` martin rudalics
2024-09-18 14:24 ` Ship Mints
2024-09-18 18:51 ` martin rudalics
2024-09-19 5:01 ` Eli Zaretskii
2024-09-19 8:10 ` martin rudalics
2024-09-18 14:26 ` Robert Pluim
2024-09-18 14:30 ` Ship Mints
2024-09-18 15:26 ` Gerd Möllmann
2024-09-18 15:32 ` Ship Mints
2024-09-18 15:22 ` Gerd Möllmann
2024-09-25 10:17 ` Gerd Möllmann
2024-09-25 11:13 ` Gerd Möllmann
2024-09-25 14:04 ` martin rudalics
2024-09-25 14:38 ` Gerd Möllmann
2024-09-25 15:29 ` Eli Zaretskii
2024-09-25 18:10 ` Gerd Möllmann
2024-09-26 4:54 ` Gerd Möllmann [this message]
2024-09-26 5:01 ` Gerd Möllmann
2024-09-26 6:40 ` Eli Zaretskii
2024-09-26 6:39 ` Eli Zaretskii
2024-09-28 9:10 ` Gerd Möllmann
2024-09-18 18:51 ` martin rudalics
2024-09-18 15:03 ` Gerd Möllmann
2024-09-18 16:14 ` Eli Zaretskii
2024-09-18 16:42 ` Gerd Möllmann
2024-09-18 16:15 ` Eli Zaretskii
2024-09-18 18:52 ` martin rudalics
2024-09-19 0:33 ` Po Lu
2024-09-19 8:08 ` martin rudalics
2024-09-19 4:29 ` Gerd Möllmann
2024-09-19 8:09 ` martin rudalics
2024-09-19 9:15 ` Gerd Möllmann
2024-09-19 9:40 ` martin rudalics
2024-09-19 10:10 ` Gerd Möllmann
2024-09-19 11:13 ` martin rudalics
2024-09-19 12:49 ` Gerd Möllmann
2024-09-19 4:58 ` Eli Zaretskii
2024-09-19 8:10 ` martin rudalics
2024-09-19 8:20 ` Eli Zaretskii
2024-09-19 8:41 ` Po Lu
2024-09-19 10:30 ` Eli Zaretskii
2024-09-19 11:13 ` martin rudalics
2024-09-19 11:33 ` Eli Zaretskii
2024-09-19 9:26 ` Gerd Möllmann
2024-09-19 13:46 ` Po Lu
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m2o74b5817.fsf@pro2.fritz.box \
--to=gerd.moellmann@gmail.com \
--cc=eliz@gnu.org \
--cc=emacs-devel@gnu.org \
--cc=rpluim@gmail.com \
--cc=rudalics@gmx.at \
/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 public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).