emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: project-find-regexp using ripgrep


From: Dmitry Gutov
Subject: Re: project-find-regexp using ripgrep
Date: Mon, 22 Jun 2020 03:01:42 +0300
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.8.0

On 20.06.2020 07:09, andres.ramirez wrote:
     Dmitry> Anybody?

Before the patch:
--8<---------------cut here---------------start------------->8---
Elapsed time: 6.010101s
Elapsed time: 5.863914s
--8<---------------cut here---------------end--------------->8---

After installing ripgrep and patch:
--8<---------------cut here---------------start------------->8---
Elapsed time: 3.261737s
Elapsed time: 1.742008s
--8<---------------cut here---------------end--------------->8---

Thanks, Andres. Looks promising.

Here's the latest version of the patch, if you'd like to test. I don't expect major changes in performance, but it does add a pipe to 'sort', which creates some overhead proportional to the number of search results.

To enable ripgrep with this, one needs to 'M-x customize-variable xref-search-command-template'.

Attachment: xref-ripgrep.diff
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]