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 07:01:16 +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="30250"; 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 07:02:10 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 1stgdm-0007l6-7r for ged-emacs-devel@m.gmane-mx.org; Thu, 26 Sep 2024 07:02:10 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1stgd2-0002OQ-JJ; Thu, 26 Sep 2024 01:01:24 -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 1stgd1-0002Nw-Bi for emacs-devel@gnu.org; Thu, 26 Sep 2024 01:01:23 -0400 Original-Received: from mail-lj1-x234.google.com ([2a00:1450:4864:20::234]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1stgcz-0003gj-II; Thu, 26 Sep 2024 01:01:22 -0400 Original-Received: by mail-lj1-x234.google.com with SMTP id 38308e7fff4ca-2f753375394so5249581fa.0; Wed, 25 Sep 2024 22:01:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1727326878; x=1727931678; 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=j8Na7SXmZ9fjYfNxoqJB8GIB+Nf0sUjYhl7YajVQdck=; b=Gd3R/iYQeKnC3XzrfTasSxwbmLnzuROVWKOBo/V1jBAaMve6E+4biMGaddm9V255NP oazuc/qFaPk1KK0fwsIN6IAZ/9EM8iiGNz6fJezzHRZV/rpTV5kobwbze4z74ZI07Og7 D0HWSSQAySb+mqeQjNwK0lyp6CWoQZxk4yCr1sj97LIs1EHF66rr/x+4aWz1LQ69Z6OO JNrY6hPOGh4Q71//Sr4rf/oYWPmmnGnsbgsvAiUnhh9geDCEsubme6XPNllOWmfIztQW J7WPmHhyrZPn7LCwEJmOkW7s/DjnhAJ+BYL9BsVG4u1z+aWdmFSpRI242ykpsF0HSMsR dM0g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1727326878; x=1727931678; 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=j8Na7SXmZ9fjYfNxoqJB8GIB+Nf0sUjYhl7YajVQdck=; b=STRpWHBzBmN6dt1xHwBvtsJuXK1L9zCZ3vB6y5c9KgqundYt5I1NAjJbyvfgDf1ixx yQDOCuXBfXrpZPFx5Xxi0yFGRZt1Cn4iw16n8vSa3eNgRq6exZkHQYidAlgGD+9fcsi7 4lfp3V6rRQ5OSyW18BM4h5NjJW/7dmR68zCzOgkmNyMrQNvfsiAxGS/QiHNtTud/pEYP fUT+DIlDmvpnCAkUk+OlqCBDGAQuioAN1qOpT3ERmBQ7EDmoaj6oQ6r+livDxGmYG7JR rQ3WFycs3JRB2oBq9dhtzLGjqPj8a7Ns/pgT3YFexz3+4kYOdiczJGdV7sfSzvZfqUum 7uPw== X-Forwarded-Encrypted: i=1; AJvYcCXgWEQJ8FQiWdyfCFjdWQ4XI25bIP6ZU1MwYPnW3Q1YPDDLi40UBsWUElUxnVeUFBQ70Dk84gbV572lew==@gnu.org X-Gm-Message-State: AOJu0YxTh2m3LItvEAe7I0133dcSiLpf5ztYa2vux4wRXzbt3rimTG1E lw6VoJUFynoOBeE6z/u7rTmBhm5Ehtic3Ie58qtDuLUc/mI6/ga6LLJv1Q== X-Google-Smtp-Source: AGHT+IETor/NG91n8DigOgAYvi5ZJBvgy8rxJTQ65P3WNyyoBLMNiIr52HPFRm+J6Rf/nbBfeuuTEQ== X-Received: by 2002:a2e:be88:0:b0:2f5:806:5cee with SMTP id 38308e7fff4ca-2f915fdf98cmr34077341fa.11.1727326878025; Wed, 25 Sep 2024 22:01:18 -0700 (PDT) Original-Received: from pro2.fritz.box (pd9e3669d.dip0.t-ipconnect.de. [217.227.102.157]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-5c5cf48c341sm2697509a12.2.2024.09.25.22.01.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Sep 2024 22:01:17 -0700 (PDT) In-Reply-To: ("Gerd =?utf-8?Q?M=C3=B6llman?= =?utf-8?Q?n=22's?= message of "Thu, 26 Sep 2024 06:54:44 +0200") Received-SPF: pass client-ip=2a00:1450:4864:20::234; envelope-from=gerd.moellmann@gmail.com; helo=mail-lj1-x234.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:324096 Archived-At: Gerd M=C3=B6llmann writes: > 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 mome= nt. >> >> 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_= lambda > 12.11 s 53,9=C2=A0% 0 s exec_= byte_code > 8.04 s 35,8=C2=A0% 1.00 ms > CA::Context::commit_transaction(CA::Transaction*, double, double*) > 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:notifyFamilyAndUpdateDefaults:upgradedCon= figuration:] > 1.81 s =E2=80=878,1=C2=A0% 0 s -[NSToolbarView > _layoutDirtyItemViewersAndTileToolbar] > 854.00 ms =E2=80=873,8=C2=A0% 0 s -[NSToolbarView > _configureItemViewersForLayoutIfNecessary] > 669.00 ms =E2=80=873,0=C2=A0% 0 s -[NSToolbarItemViewer _configureViewerS= ize] > 397.00 ms =E2=80=871,8=C2=A0% 0 s -[NSToolbarItem _scalableMinSize] > 359.00 ms =E2=80=871,6=C2=A0% 0 s -[NSToolbarItem > _itemViewMinSize: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. Maybe I should add that I don't think this is a problem. It's more than fast enough for me at least, with ca. 50ms for a make-frame + redisplay + delete-frame.