Well, I don't know what I was smoking - but (setq lookup-syntax-properties
nil) seems to
cure the worst of the slowness for me. Unfortunately indentation at the
bottom of my
5K line file is still 10s with font lock on (2s without) so something bad is
still going
on but it seems unrelated to Matt's change. Worse it appears there is a bug
in my option
code since building *with* SYNTAX_TEXT_PROPERTIES doesn't work with java
files - font-lock aborts.
Other files work ok.
So I think you should go ahead with setting lookup-syntax-properties to nil
and any
other optimizations you feel appropriate. I'll probably just overwrite the
affected
files in the windows branch when you are done.
andy
P.S. I don't smoke.