Refactor find_diff_rec and detect kept prefix/suffixes early
Refactor find_diff_rec and detect kept prefix/suffixes early

Certain cases, like diffing an empty buffer with a big buffer, were
very slow, now this should get better as we will directly detect the
matching eol at the end of both buffers, end then immediatly detect
we need to add the rest of the big buffer.

We still are too slow on some general diff when there is a lot of
differences.

mawww/kakoune,occivink/kakoune,casimir/kakoune,alexherbo2/kakoune,lenormf/kakoune,jkonecny12/kakoune,danr/kakoune,occivink/kakoune,Somasis/kakoune,casimir/kakoune,danr/kakoune,jjthrash/kakoune,Somasis/kakoune,occivink/kakoune,alexherbo2/kakoune,danr/kakoune,casimir/kakoune,jkonecny12/kakoune,Somasis/kakoune,jkonecny12/kakoune,jjthrash/kakoune,danr/kakoune,casimir/kakoune,mawww/kakoune,lenormf/kakoune,jkonecny12/kakoune,jjthrash/kakoune,Somasis/kakoune,alexherbo2/kakoune,occivink/kakoune,lenormf/kakoune,mawww/kakoune,jjthrash/kakoune,alexherbo2/kakoune,mawww/kakoune,lenormf/kakoune