emacs-devel
[Top][All Lists]
Advanced

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

Re: Stealth fontification GCs a lot


From: Richard Stallman
Subject: Re: Stealth fontification GCs a lot
Date: Thu, 14 Apr 2005 15:04:00 -0400

    I love JIT font-lock and depend on it for proper operation of HAPE, but 
    stealth-fontification is pointless when working on a 2MB file that's 
heavily 
    fontified but probably much less than 1% of it will be looked at during any 
    one editing session.

Perhaps stealth fontification should be turned off for files larger
than a certain size.

Or perhaps with Eli's revised parameters it is so harmless that you
may as well have it enabled for these files too.  After all, suppose
you visit the file and then spend half an hour on the phone.  It could
have fontified the whole thing for you in that much time--so why
not do so?

    Maybe it should only try to stealth-fontify some amount of text before
    and after the current point (e.g., 100 lines before and after; if the
    user moves, then just give up on the old position...),

That might be a good idea, but 100 lines is clearly too little.
500 or 1000 might be better.




reply via email to

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