Subject: bug#34343: [PATCH] Make project--find-regexp-in-files work with remote files

From: Dmitry Gutov <[email-masked]>
Date: Sat, 28 Dec 2019 17:46:07 +0300

On 27.12.2019 19:57, Michael Albinus wrote:
> file-local-name uses internally file-remote-p, which calls
> expand-file-name if the connection is already established

Why? If the caller needs an expanded name, they can call 
expand-file-name themselves. Or if they need an expanded local name:

     (file-local-name (expand-file-name filename))

Aside from performance problems, this feels like an inconsistent behavior.

> Could you pls test the appended patch, whether it improves performance?

In any case, this didn't help because in my main scenario 
identification=localname. Whatever that means.