From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?utf-8?Q?Gerd_M=C3=B6llmann?= Newsgroups: gmane.emacs.devel Subject: Re: Question about =?utf-8?Q?=C3=BCarent-frame?= changes Date: Thu, 26 Sep 2024 06:54:44 +0200 Message-ID: References: <9bc2af0a-d3c1-4ba6-a350-af6e2b85695d@gmx.at> <87y13phwbk.fsf@gmail.com> <8634lnda4y.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="6284"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: rpluim@gmail.com, rudalics@gmx.at, emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Sep 26 06:55:45 2024 Return-path: Envelope-to: ged-emacs-devel@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 1stgXY-0001Tc-Mc for ged-emacs-devel@m.gmane-mx.org; Thu, 26 Sep 2024 06:55:44 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1stgWk-0005Mo-JG; Thu, 26 Sep 2024 00:54:54 -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 1stgWh-0005MX-KR for emacs-devel@gnu.org; Thu, 26 Sep 2024 00:54:52 -0400 Original-Received: from mail-wm1-x335.google.com ([2a00:1450:4864:20::335]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1stgWf-0002jc-00; Thu, 26 Sep 2024 00:54:50 -0400 Original-Received: by mail-wm1-x335.google.com with SMTP id 5b1f17b1804b1-42cb57f8b41so6404975e9.0; Wed, 25 Sep 2024 21:54:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1727326486; x=1727931286; darn=gnu.org; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=CV80zCX/VPHRjEgGz5lRbo9Lj3Z5vRFf5FeWu7s/JIg=; b=T8F9/Qvv9r5cM+WYS9JT46UeJizh3Ii/01Ev4QeCgZcKRCHUejNU/d5j5cGKjcN4yN Gzg+oyUeMEWJJYyL1C7zECaX9E0ZL9S4y44Rr1Xubz/AFob3JoKe1wjv8syDCSOX3gEc UarqAibjQZHhCzGCg7u58tvSx+MJE+JnA8ZbcoVuW7EvGDVMp2JVNXQiXtvlKD95meBJ U7DMInoBfA3uTTjSxqwROf+J5Jq69tOeyu+MitekHgaimgvzRwzoT0KFSbU3YsP2f9eP vW5ldEL5W+AVIv6rg/j0qw6QBQhuY6xyXG/CS+F27Z0vqkKsnaD1bCc2wXJNnIqv03AS gsAg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1727326486; x=1727931286; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=CV80zCX/VPHRjEgGz5lRbo9Lj3Z5vRFf5FeWu7s/JIg=; b=ZOa4lvP83Nu+NGTpdVKpv0moQRY5bNvW0wnyZ94LvpUgMRNeGD3r5v0Myk+gualMcs 9JClevg4PT1waYtUDeTJmJJMVhvLwyKqHJe5LEk8BZjdG7SIy6ddaS8U97EZUzBnf6Os a52ZhJ4xNpUsssax4WOTFhgCIEiaOq4EjPxWElwEcBzCpxYeaKIsNhoYpMPz4Qox/CsS mnEIGJW0srNjmXRi8Qp3XyAXVVPjdWKRzomUt+/RE29ON1nA0TBQqtgaO1sCyR7jFuAh 1bdCh5i+5kS2Wb+z5Tk63ANW3X8DIiECa6qzS/+bi+fdpbVcwPeaV8EJy0oXB16D62IA NKHw== X-Forwarded-Encrypted: i=1; AJvYcCWRf3+6GmdhCXaePbtM93phy9Bh4uTMbuTA7DHF0GCOB2XFrO5QSTTZDJ1vPsdufF6czKbo/yBaN6P7yQ==@gnu.org X-Gm-Message-State: AOJu0Yw+WomWv7O2lzJJOI5UZgx8l2xgmi5aUGkfl5UJNCc3kNsoNryH nr35AIzTj/e330V7mdBSQ61MUkq8H9/EQLZojOhcVRYDrajYUr1HMHmAnA== X-Google-Smtp-Source: AGHT+IEcf4MdQQS1tlTAvD31WVUHZcTVUkSh9R+5fC2/UQi2PsCWg+moQv+5vpZkF3z01z5EIMg5GQ== X-Received: by 2002:a05:6000:d46:b0:37c:cfa4:d998 with SMTP id ffacd0b85a97d-37ccfa4da4emr586132f8f.49.1727326486320; Wed, 25 Sep 2024 21:54:46 -0700 (PDT) Original-Received: from pro2.fritz.box (pd9e3669d.dip0.t-ipconnect.de. [217.227.102.157]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-37ccee89836sm696262f8f.55.2024.09.25.21.54.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Sep 2024 21:54:45 -0700 (PDT) In-Reply-To: ("Gerd =?utf-8?Q?M=C3=B6llman?= =?utf-8?Q?n=22's?= message of "Wed, 25 Sep 2024 20:10:47 +0200") Received-SPF: pass client-ip=2a00:1450:4864:20::335; envelope-from=gerd.moellmann@gmail.com; helo=mail-wm1-x335.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:324095 Archived-At: Gerd M=C3=B6llmann writes: > Eli Zaretskii writes: > >>> From: Gerd M=C3=B6llmann >>> Cc: martin rudalics , Emacs Devel >>> 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 momen= t. > > 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=C2=A0% 0 s Main Thread 0x158f26 18.63 s 82,9=C2=A0% 0 s apply_la= mbda 12.11 s 53,9=C2=A0% 0 s exec_by= te_code 8.04 s 35,8=C2=A0% 1.00 ms = CA::Context::commit_transaction(CA::Transaction*, double, dou= ble*) 5.33 s 23,7=C2=A0% 0 s = CA::Layer::layout_if_needed(CA::Transaction*) 5.32 s 23,7=C2=A0% 2.00 ms = redisplay_internal 3.96 s 17,6=C2=A0% 0 s = redisplay_windows 3.56 s 15,8=C2=A0% 0 s = update_frame_tool_bar_1 2.62 s 11,6=C2=A0% 0 s = -[NSToolbar _setConfigurationFromDictionary:notifyFamily= AndUpdateDefaults:upgradedConfiguration:] 1.81 s =E2=80=878,1=C2=A0% 0 s = -[NSToolbarView _layoutDirtyItemVi= ewersAndTileToolbar] 854.00 ms =E2=80=873,8=C2=A0% 0 s = -[NSToolbarView _configureItem= ViewersForLayoutIfNecessary] 669.00 ms =E2=80=873,0=C2=A0% 0 s = -[NSToolbarItemViewer _confi= gureViewerSize] 397.00 ms =E2=80=871,8=C2=A0% 0 s = -[NSToolbarItem _scalableMi= nSize] 359.00 ms =E2=80=871,6=C2=A0% 0 s = -[NSToolbarItem _itemView= MinSize:maxSize:stretchesContent:] 179.00 ms =E2=80=870,8=C2=A0% 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=3Dall. Not much one can do about that, I guess. At least on macOS, it could be different on other platforms of course.