Find using regular expressions #658
One thing I noticed: if the highlights get updated while the search query is a multiline regex, then for larger text there is a noticable delay.
Good point, I wasn't thinking about updating the highlights during a document edit.
This will be easier when search is incremental, and we can just clear the edited region immediately and schedule the runloop to re-search the rest of the document.
I'm not sure what our best bet is for now; it might be that in the regex case we want to clear the highlights while typing. Alternatively, we could go ahead and implement incremental search. There's definitely a performance issue on a debug build though, enough that i wonder if there isn't something else going on.