[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: file-remote-p called a lot?
From: |
Michael Albinus |
Subject: |
Re: file-remote-p called a lot? |
Date: |
Wed, 08 Aug 2007 09:24:03 +0200 |
User-agent: |
Gnus/5.1008 (Gnus v5.10.8) Emacs/21.3 (hpux) |
raman <address@hidden> writes:
> I observe that file-remote-p gets called *lots* of times while
> doing things like expand-file-name --- though it doesn't appear
> to have a performance hit on today's machines, it still feels
> excessive --- at least when watching things in the debugger to
> see Emacs performing the same set of contortions over and over
> again.
`mode-line-format' contains per default `mode-line-remote', introduced
a couple of weeks ago. Evaluating this variable calls `file-remote-p'.
I guess this is the reason of the observed behaviour.
As you said, it shouldn't be a performance bottleneck, because
`file-remote-p' doesn't connect a remote machine ever.
As far as I see in the code, `expand-file-name' doesn't call
`file-remote-p'.
Best regards, Michael.