What are string matching algorithms used in text editors like Atom and sublime
Since Emacs is the superior editor, you can take a look in the source code yourself:  search.c
Emacs uses the Boyer–Moore string-search algorithm, so that's probably what you should prefer too.