Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[xtext-dev] Re: [Bug 269989] [Highlighting] Syntax highlighting is very slow

> On additional remark: 
> We need to be careful to avoid reading model state within the UI
> thread, at
> least if it is not triggered by ModelChangeEvents (like e.g. in
> content
> outline), because a read access will trigger the Reconciler to do his
> job
> (through the Processor hook). So in the case of the previous
> implementation of
> the DamageRepairer, which requested read access to the model, the
> Reconciler
> was actually triggered by the DamageRepairer's read request, which
> results in a
> model change on key stroke rather than the desired delayed
> reconciling
> strategy.

I believe this had been built in deliberatedly in order to make sure we have a valid model as soon as the user invokes CA. I think Michael can comment on this, as he had been working on this back then.

Peter



Back to the top