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: Mon, 24 May 2021 19:43:19 +0300 Message-ID: <83v978ccbc.fsf@gnu.org> References: <831r9xjrho.fsf@gnu.org> <5754E85B-9840-416B-B9C1-E6B2B1FC0114@gnu.org> <80A25FCA-2CF4-433F-B82F-4B37ED5BC6DC@gnu.org> <831r9wdrjr.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="34949"; mail-complaints-to="usenet@ciao.gmane.io" Cc: alan@idiocy.org, mituharu@math.s.chiba-u.ac.jp, emacs-devel@gnu.org To: Aaron Jensen Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon May 24 19:10:39 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 1llE6A-0008s4-Vu for ged-emacs-devel@m.gmane-mx.org; Mon, 24 May 2021 19:10:38 +0200 Original-Received: from localhost ([::1]:40404 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1llE69-0002ai-Vi for ged-emacs-devel@m.gmane-mx.org; Mon, 24 May 2021 13:10:37 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:45652) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1llDfr-0006Ky-Ar for emacs-devel@gnu.org; Mon, 24 May 2021 12:43:29 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:43408) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1llDfo-0004yQ-TN; Mon, 24 May 2021 12:43:24 -0400 Original-Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:3167 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 1llDfo-0002Ze-DX; Mon, 24 May 2021 12:43:24 -0400 In-Reply-To: (message from Aaron Jensen on Mon, 24 May 2021 09:31:56 -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:269780 Archived-At: > From: Aaron Jensen > Date: Mon, 24 May 2021 09:31:56 -0700 > Cc: emacs-devel@gnu.org, Alan Third , > YAMAMOTO Mitsuharu > > On Mon, May 24, 2021 at 9:29 AM Eli Zaretskii wrote: > > > > Which faces are the those for which merge_faces was called 40 times, > > and which faces are those for which it was called 147,882 times. > > I'll have to get back to you on the 40. The 147k appears to be > entirely line-number and line-number-current-line. If I had to guess, > Emacs is calling merge-faces with line-number and > line-number-current-line for every visible line at least once for > every scroll. Of course. But it also does that for every other face, starting with font-lock faces. So something is still amiss here, because 40 is too small a number. > > Also, what did Emacs do when you collected these numbers, and in which > > buffer under what major mode? > > emacs -Q src/xdisp.c with scroll-up-benchmark Then you should see font-lock-comment-face, font-lock-keyword-face, font-lock-variable-name-face, etc., and calls to merge_face_ref for them coming from face_at_buffer_position.