Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign upFEATURE: improve performance for all `counsel-xxx-grep` commands #1198
Comments
redguardtoo
changed the title from
improve performance for all `counsel-xxx-grep` commands
to
FEATURE: improve performance for all `counsel-xxx-grep` commands
Sep 12, 2017
added a commit
to jeberger/swiper
that referenced
this issue
Oct 12, 2017
added a commit
that referenced
this issue
Nov 13, 2017
redguardtoo
closed this
Dec 4, 2017
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
redguardtoo commentedSep 12, 2017
•
edited
I understand current ivy basically converts the user input into regular expression used by
grepprogram (the actual grep program could be ag, rg, git-grep, grep ...).The key issue is this solution is slow when user input multiple keywords (I use git-grep, take 5 or 6 seconds to filter 5000 candidates)
I suggest a two step UI,
I've tested such solution in my own
my-grep(https://github.com/redguardtoo/emacs.d/blob/master/lisp/init-ivy.el). It takes less than 1 second whilecounsel-git-greptakes 5 seconds on refreshing candidates.Extra benefit is
occurcode is simpler and much more efficient because we only run grep program once and everything else is handled by lisp.