emacs-devel
[Top][All Lists]
Advanced

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

Re: emacs-26 eec71eb: Speed up replace-buffer-contents


From: Eli Zaretskii
Subject: Re: emacs-26 eec71eb: Speed up replace-buffer-contents
Date: Wed, 04 Jul 2018 19:55:59 +0300

> From: Paul Eggert <address@hidden>
> Date: Tue, 3 Jul 2018 23:36:44 -0700
> Cc: address@hidden, address@hidden
> 
> For rarely_quit, with -O2 typically the overhead 
> of the rarely_quit call (including computing its argument) is typically just 
> two 
> CPU instructions (a test and a conditional branch that is predicted 
> correctly, 
> so both instructions are cheap). This is way better than -O0.

It's not rarely_quit that is expensive, it's the few calls to
maybe_quit it does, because maybe_quit accesses two Lisp symbols.  I
think.



reply via email to

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