On 8/2/12, Walter Bright <newshou...@digitalmars.com> wrote:
> A good IDE should do its parsing in a separate thread, so the main user
> input
> thread remains crisp and responsive.
>
> If the user edits the text while the parsing is in progress, the background
>
> parsing thread simply abandons the current parse and starts over.

Agreed, this is an editor/IDE domain problem. And there are some
obvious optimizations an editor could use, such as only lexing the
visible portion of text on the screen (and then lexing the rest in a
background thread which doesn't block the interface).

Reply via email to