Remove useless defsubst
Fix search in buffer which is not tied to a file
In big buffers, search only when needle is of certain length