If you search in a very large file and there are no matches of the string you're searching for or the matches are very far from the start (e.g. on the 10 000th page), the search takes a lot of time. The scenario can also lead to a crash. Consider adding a progress bar showing on which page we're currently searching and implementing possibility to cancel the search.