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: Sat, 29 May 2021 21:40:24 +0300

> From: Aaron Jensen <aaronjensen@gmail.com>
> Date: Sat, 29 May 2021 11:22:06 -0700
> Cc: Alan Third <alan@idiocy.org>, 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.



reply via email to

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