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: Thu, 27 May 2021 20:47:57 +0300 Message-ID: <83k0nk83w2.fsf@gnu.org> References: <83mtskc4zl.fsf@gnu.org> <83lf84c4p7.fsf@gnu.org> <83k0nncznr.fsf@gnu.org> <279F3242-E556-42C9-8489-4DD8F538938E@gnu.org> <83bl8zc8ku.fsf@gnu.org> <83mtsg86b6.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="34359"; mail-complaints-to="usenet@ciao.gmane.io" Cc: mituharu@math.s.chiba-u.ac.jp, aaronjensen@gmail.com, emacs-devel@gnu.org To: Alan Third Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu May 27 19:48:38 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 1lmK7Z-0008jw-9B for ged-emacs-devel@m.gmane-mx.org; Thu, 27 May 2021 19:48:37 +0200 Original-Received: from localhost ([::1]:47140 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lmK7Y-0000U5-CP for ged-emacs-devel@m.gmane-mx.org; Thu, 27 May 2021 13:48:36 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:58770) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lmK6w-0008Bv-IG for emacs-devel@gnu.org; Thu, 27 May 2021 13:47:58 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:55728) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lmK6t-0005XN-I9; Thu, 27 May 2021 13:47:55 -0400 Original-Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:4364 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 1lmK6t-0005Nk-3q; Thu, 27 May 2021 13:47:55 -0400 In-Reply-To: (message from Alan Third on Thu, 27 May 2021 18:40:54 +0100) 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:269955 Archived-At: > Date: Thu, 27 May 2021 18:40:54 +0100 > From: Alan Third > Cc: aaronjensen@gmail.com, emacs-devel@gnu.org, > mituharu@math.s.chiba-u.ac.jp > > > > 3.7s 3.7s 4s > > > > So I'm sure I understand: it takes you just 3 seconds to scroll > > through all of xdisp.c, top to bottom, with the command below? > > > > (defun scroll-up-benchmark () > > (interactive) > > (let ((oldgc gcs-done) > > (oldtime (float-time))) > > (condition-case nil (while t (scroll-up) (redisplay)) > > (error (message "GCs: %d Elapsed time: %f seconds" > > (- gcs-done oldgc) (- (float-time) oldtime)))))) > > Yes, although the initial run through, where the file is font-locked, > is more like 22 seconds. I didn't count that, am I measuring this wrongly? Yes, I meant to measure just the first scroll, and restart Emacs each time before another measurement. So maybe we were comparing apples and oranges all the time.