Fix some performance bottleneck with short-paths
Fix some performance bottleneck with short-paths

dra27/merlin,chriskonstad/merlin,dra27/merlin,dra27/merlin,neojski/merlin,rgrinberg/merlin,the-lambda-church/merlin,haselwarter/merlin,chambart/merlin,chambart/merlin,ocaml/merlin,rgrinberg/merlin,fxfactorial/merlin,neojski/merlin,rgrinberg/merlin,haselwarter/merlin,ocaml/merlin,haselwarter/merlin,chambart/merlin,fxfactorial/merlin,chriskonstad/merlin,neojski/merlin,fxfactorial/merlin,the-lambda-church/merlin,ocaml/merlin,chambart/merlin,haselwarter/merlin,rgrinberg/merlin,neojski/merlin,dra27/merlin,fxfactorial/merlin,the-lambda-church/merlin,ocaml/merlin