defunkt/textmate.el — pull request #21 by evanlong (2012-06-03 10:23:24+00:00)
Title: Improving find file performance by hacking in FindFileInProject.

The change I made to FindFileInProject: use textmate.el's project root finder.
And picking between the find command and git ls-files if the active file happens
to be under git control.

The speed to first finding a file is significantly faster.

Here are the performance results that influenced my decision to list files under git control using `git ls-files` but avoid using `hg manifest` for mercurial (hardly scientific):

With the django project I had the following timing results for listing files:

time find . -path *.hg -prune -o -name *.git -prune -o -print 1>/dev/null
real	0m0.111s
user	0m0.046s
sys	0m0.062s

time git ls-files 1>/dev/null
real	0m0.014s
user	0m0.009s
sys	0m0.004s

time hg manifest 1>/dev/null
real	0m0.406s
user	0m0.146s
sys	0m0.055s