Hi guy,

I writing a simple syntax highlighting code which has loop due to comparisons of the reserved keyword against the input text , the code is a little bit processor hungry so, I decided to put the expensive loop on a separate thread, but with no good, in addition to that it makes the main UI not responding quickly til the parsing finish. What can I do to make my code faster and more responsive?????



The "thread" is the right idea, but probably done wrong. It might help to see the code. However, recreate the code in a small GUI that contains nothing but the textarea and the "loop" (and any extraneous items "in between" that actually contribute) that displays the problem you're seeing.