[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: vc-git-grep vs project-find-regexp
From: |
Daniel Martín |
Subject: |
Re: vc-git-grep vs project-find-regexp |
Date: |
Mon, 21 Aug 2023 22:20:07 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) |
Nicolás Ojeda Bär <n.oje.bar@gmail.com> writes:
> Hello,
>
> I have used M-x vc-git-grep for a long time, but decided to give M-x
> project-find-regexp a try after switching to 29.1.
>
> While it seems to work well, project-find-regexp seems much slower
> than vc-git-grep. After you execute the command, it pauses for what it
> feels a long time (~2s in a medium-size codebase) before showing the
> results. vc-git-grep on the other hand, starts displaying results
> immediately.
>
> Is there a good reason for this difference? The only visible
> difference between both commands is that project-find-regexp's results
> are displayed in a XREF buffer while vc-git-grep uses Grep mode.
>
> Insights appreciated!
>
> Best wishes,
> Nicolas
See bug#50733. There were some performance improvements as a result of
that discussion, but I think that, without substantial architectural
changes to Xref, git grep/grep will always "feel" faster because the
grep process is executed asynchronously.