Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How can I improve the performance (very slow in large repos)? #3

Closed
arnab opened this issue Jan 14, 2013 · 3 comments
Closed

How can I improve the performance (very slow in large repos)? #3

arnab opened this issue Jan 14, 2013 · 3 comments

Comments

@arnab
Copy link

arnab commented Jan 14, 2013

For a large repo (9.8k files) I find the completion to be very laggy: see my SO question.

How can I introduce a delay into the process such that only when there is a gap in typing (say 300ms) we go out and run a git ls-files ...?

@Wilfred
Copy link

Wilfred commented Jan 22, 2013

Try disabling ido's flexible matching. Generally, it's unnecessary (it enables "fbz" to match "foobarbaz") and really hurts performance.

M-x set-variable <RET> ido-enable-flex-matching <RET> nil

@arnab
Copy link
Author

arnab commented Jan 23, 2013

Thanks. In the meantime, I started using helm and helm-ls-git and that's working well for now.

I will try this out and report back if it there's more trouble. Feel free to close the issue.

@Wilfred
Copy link

Wilfred commented Mar 1, 2013

Glad you found something that works. I'm not the maintainer of this excellent repo, so I'll leave tickets to him/her.

For my future reference, you can do this with defadvice:

(defadvice find-file-in-repository (around disable-ido-flex-matching)
  (let ((ido-enable-flex-matching nil))
    ad-do-it))

(ad-activate 'find-file-in-repository)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants