From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: macOS metal rendering engine in mac port Date: Sat, 29 May 2021 21:40:24 +0300 Message-ID: <834kel5qp3.fsf@gnu.org> References: <83k0ni6pje.fsf@gnu.org> <83eedq6mvm.fsf@gnu.org> <83zgwd6gk3.fsf@gnu.org> <83bl8t5vu6.fsf@gnu.org> <83a6od5tqh.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="21675"; mail-complaints-to="usenet@ciao.gmane.io" Cc: alan@idiocy.org, emacs-devel@gnu.org To: Aaron Jensen Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat May 29 20:42:05 2021 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 1ln3uP-0005Sy-6g for ged-emacs-devel@m.gmane-mx.org; Sat, 29 May 2021 20:42:05 +0200 Original-Received: from localhost ([::1]:42440 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ln3uO-00051A-AB for ged-emacs-devel@m.gmane-mx.org; Sat, 29 May 2021 14:42:04 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:37582) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ln3sl-0004F3-29 for emacs-devel@gnu.org; Sat, 29 May 2021 14:40:23 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:50772) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ln3si-0004H0-Ac; Sat, 29 May 2021 14:40:21 -0400 Original-Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:1990 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ln3sh-00018Q-2N; Sat, 29 May 2021 14:40:20 -0400 In-Reply-To: (message from Aaron Jensen on Sat, 29 May 2021 11:22:06 -0700) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 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" Xref: news.gmane.io gmane.emacs.devel:270088 Archived-At: > From: Aaron Jensen > Date: Sat, 29 May 2021 11:22:06 -0700 > Cc: Alan Third , emacs-devel@gnu.org > > > Its being significant is what surprises me. The linear search in > > assq_no_quit should be very fast, as it requires just a few machine > > instructions per member. You yourself say your profile says it takes > > 15ms to call that function 500k times. How can extra 15ms be so > > significant? > > I did not say this. 500k times, according to the benchmarks I > provided, take over 2s. It's only 15ms to do 500k _hash lookups_. OK, but still: assq_no_quit should be very fast. > > Is it possible that many of the 1200 faces you have inherit from other > > faces, perhaps recursively? > > My theme is set up like this: > https://github.com/aaronjensen/nano-emacs/blob/master/nano-theme.el I see a lot of :inherit there. I'm quite sure this exacerbates the problem, as each :inherit needs to recursively search for and access the attributes of the parent face. > About perceiving typing latency, have you read this article: > https://pavelfatin.com/typing-with-pleasure/ Yes.