emacs-devel
[Top][All Lists]
Advanced

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

Re: JIT stealth font-lock tuning parameters


From: Eli Zaretskii
Subject: Re: JIT stealth font-lock tuning parameters
Date: Mon, 12 Nov 2001 11:47:10 +0200 (IST)

On Sun, 11 Nov 2001, Richard Stallman wrote:

>     To solve this, I suggested to change the values of two variables
>     which tune the operation of JIT stealth:
> 
>      (setq jit-lock-stealth-time 16)
>      (setq jit-lock-stealth-nice 0.5)
> 
>     (The default values are 3 and 0.125, respectively.)
> 
> Why increase jit-lock-stealth-time?

You are much less likely to sit at the keyboard for 16 seconds than for 
3.  When stealth font-lock kicks in, and you press a key, it doesn't 
react (by stopping fontification) until it finishes processing the 
current chunk.  Thus, if it begins fontification too early, you will see 
annoying delays in responses to keystrokes.  You might not mind those 
delays if you are really taking a break from typing, but you _would_ mind 
if you just stopped for a few seconds to reread the text you've just 
typed.

> Maybe the best thing is to use a formula based on the load average to
> decide how long this should be.  Maybe also estimate the total
> speed of the computer--that should not be hard to do.

Would you object to changing the defaults as the first approximation, and 
adding the more sophisticated operation as the second one?



reply via email to

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