[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: JIT stealth font-lock tuning parameters
From: |
Stefan Monnier |
Subject: |
Re: JIT stealth font-lock tuning parameters |
Date: |
Thu, 15 Nov 2001 17:04:59 -0500 |
> > Maybe that parameter should be reduced on a slow machine.
>
> I'm not sure it would help.
>
> Would you please try it and see? Try it with syntax-ppss, since that
> is what we will be using, and that has the best chance of actually
> improving this.
I'm afraid I can't. I don't see those pauses except for the
ones that are reduced by syntax-ppss (which I have indeed tested and
confirmed that it tends to reduce their frequency).
Note that the worst case is not improved: if font-lock requires
the parse-partial-sexp-state at (point) and the syntax-ppss cache
is empty, there's nothing we can do, really. But that worst case
is extremely unlikely to happen from the stealthy part of jit-lock.
Another line of attack is a local hack (that I haven't cleaned up
yet) which adds a variable `quit-on-input' which forces any input
to cause a quit.
This way you can run a very lengthy computation inside a
`with-quit-on-input' and any input will interrupt the computation
without having to poll with `sit-for'.
This could completely eliminate those pauses, but it will require
some work to clean up the `quit-on-input' thing and then to decide
how/when quit should be allowed during jit-locking.
Stefan
- Re: JIT stealth font-lock tuning parameters, (continued)
- Re: JIT stealth font-lock tuning parameters, Alan Shutko, 2001/11/12
- Re: JIT stealth font-lock tuning parameters, Richard Stallman, 2001/11/13
- Re: JIT stealth font-lock tuning parameters, Eli Zaretskii, 2001/11/13
- Re: JIT stealth font-lock tuning parameters, Richard Stallman, 2001/11/13
- Re: JIT stealth font-lock tuning parameters, Eli Zaretskii, 2001/11/14
- Re: JIT stealth font-lock tuning parameters, Richard Stallman, 2001/11/15
- Re: JIT stealth font-lock tuning parameters, Stefan Monnier, 2001/11/15
- Re: JIT stealth font-lock tuning parameters, Richard Stallman, 2001/11/15
- Re: JIT stealth font-lock tuning parameters,
Stefan Monnier <=
- Re: JIT stealth font-lock tuning parameters, Richard Stallman, 2001/11/16
- Re: JIT stealth font-lock tuning parameters, Stefan Monnier, 2001/11/16
- Re: JIT stealth font-lock tuning parameters, Eli Zaretskii, 2001/11/17
- Re: JIT stealth font-lock tuning parameters, Richard Stallman, 2001/11/17
- Re: JIT stealth font-lock tuning parameters, Richard Stallman, 2001/11/17
- Re: JIT stealth font-lock tuning parameters, Stefan Monnier, 2001/11/17
- Re: JIT stealth font-lock tuning parameters, Richard Stallman, 2001/11/18
- Re: JIT stealth font-lock tuning parameters, Stefan Monnier, 2001/11/18
- Re: JIT stealth font-lock tuning parameters, Richard Stallman, 2001/11/19
- error - catch/throw (Re: JIT stealth font-lock tuning parameters), Karl Eichwalder, 2001/11/19