emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: macOS metal rendering engine in mac port


From: Eli Zaretskii
Subject: Re: macOS metal rendering engine in mac port
Date: Sun, 30 May 2021 12:36:17 +0300

> From: Aaron Jensen <aaronjensen@gmail.com>
> Date: Sun, 30 May 2021 00:04:43 -0700
> Cc: Alan Third <alan@idiocy.org>, emacs-devel@gnu.org
> 
> If I run the test on line 499 of xdisp.c I get:
> 
> Native, hash, no line numbers: 3756ms
> Native, hash, line numbers: 4185ms
> 
> Native, alist, no line numbers: 4810ms
> Native, alist, line numbers: 7173ms

In an unoptimized build, "emacs -Q", without native-compilation, I get
26.39 and 27.22 sec, respectively.

> On line 500 of xdisp.c, less than 100 with line numbers off, ~1300
> with line numbers on.
> I have 48 lines visible, a mode line with nothing in it, and a header line.
> 
> If I disable my theme, I get about 9 moving to the right and 2 to the
> left with line numbers on. Yikes.

Indeed.

> It's not my faces though, it's my header line that's causing that many
> calls, possibly because it's triggering a redraw because the column
> changed? I'm not sure how mode/header lines work when they update.

You have the column displayed on your header-line?

> Theme on: 7173ms
> Header line off: 6900ms
> Faces default: 6100ms
> Header off and faces default: 5682ms
> 
> For comparison, header off and faces default with line numbers off: 3804ms
> 
> This does tell me I want to stop using inheritance in my theme, but it
> won't make as big of a difference w/ the hash patch I imagine.

Yes, which is why we want that patch, as soon as it's ready.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]