Re: slow find-file for network file systems and very deep directories
  Home FAQ Contact Sign in
gnu.emacs.help only
 
Advanced search
POPULAR GROUPS

more...

gnu.emacs.help Profile…
 Up
Re: slow find-file for network file systems and very deep directories         


Author: Eli Zaretskii
Date: Sep 11, 2008 23:25

> From: AlFire ggmail.com>
> Date: Thu, 11 Sep 2008 19:56:58 -0700
>
> this is a situation: I access samba based file system from Windows. It
> is not rocket fast but neither pig slow. I noted the find-file takes
> veeeery long (15 seconds) time to complete. Another factor is that the
> file is quite deep in the directory structure namely:
>
> W:\dir1\dir2\dir3\dir4\dir5\dir6\dir7\dir8\dir9\dirA\dirB\dirC\file.c

Which version of Emacs is that?

Also, did you type the above long file name literally, or did you use
TAB-completion somewhere along the way? If the latter, please tell
_exactly_ what you typed, character by character (C-h l should help
you gathering this info).
7 Comments
Re: slow find-file for network file systems and very deep directories         


Author: AlFire
Date: Sep 12, 2008 19:25

Eli Zaretskii wrote:
>> From: AlFire ggmail.com>
>> Date: Thu, 11 Sep 2008 19:56:58 -0700
>>
>> this is a situation: I access samba based file system from Windows. It
>> is not rocket fast but neither pig slow. I noted the find-file takes
>> veeeery long (15 seconds) time to complete. Another factor is that the
>> file is quite deep in the directory structure namely:
>>
>> W:\dir1\dir2\dir3\dir4\dir5\dir6\dir7\dir8\dir9\dirA\dirB\dirC\file.c
>
> Which version of Emacs is that?
>
> Also, did you type the above long file name literally, or did you use
> TAB-completion somewhere along the way? If the latter, please tell
> _exactly_ what you typed, character by character (C-h l should help
> you gathering this info).
>
Show full article (0.95Kb)
no comments
Re: slow find-file for network file systems and very deep directories         


Author: Eli Zaretskii
Date: Sep 13, 2008 01:14

> From: AlFire ggmail.com>
> Date: Fri, 12 Sep 2008 19:25:03 -0700
>
> Eli Zaretskii wrote:
>>> From: AlFire ggmail.com>
>>> Date: Thu, 11 Sep 2008 19:56:58 -0700
>>>
>>> this is a situation: I access samba based file system from Windows. It
>>> is not rocket fast but neither pig slow. I noted the find-file takes
>>> veeeery long (15 seconds) time to complete. Another factor is that the
>>> file is quite deep in the directory structure namely:
>>>
>>> W:\dir1\dir2\dir3\dir4\dir5\dir6\dir7\dir8\dir9\dirA\dirB\dirC\file.c
>>
>> Which version of Emacs is that?
> 22.2.1
>
>>
>> Also, did you type the above long file name literally, or did you use
>> TAB-completion somewhere along the way? If the latter, please tell ...
Show full article (1.15Kb)
1 Comment
Re: slow find-file for network file systems and very deep directories         


Author: AlFire
Date: Sep 15, 2008 20:58

Eli Zaretskii wrote:
>
> Does it help to set w32-get-true-file-attributes to a nil value?
>
>

did not help - I tested it. and probably should since describe-variable says it is NTFS only:

Documentation:
Non-nil means determine accurate link count in `file-attributes'.
Note that this option is only useful for files on NTFS volumes, where hard links
are supported. Moreover, it slows down `file-attributes' noticeably.

what else? could it be really considered a bug. from the original trace - I noted that Emacs is kind of looking for a source control related files like: .bzr\checkout\, _MTN, {arch}\, MCVS\ and walking thru the tree structure multiple times.
no comments
Re: slow find-file for network file systems and very deep directories         


Author: Eli Zaretskii
Date: Sep 16, 2008 11:54

> From: AlFire ggmail.com>
> Date: Mon, 15 Sep 2008 20:58:06 -0700
>
> Eli Zaretskii wrote:
>>
>> Does it help to set w32-get-true-file-attributes to a nil value?
>>
>>
>
> did not help - I tested it. and probably should since describe-variable says it is NTFS only:
>
>
> Documentation:
> Non-nil means determine accurate link count in `file-attributes'.
> Note that this option is only useful for files on NTFS volumes, where hard links
> are supported. Moreover, it slows down `file-attributes' noticeably.
Show full article (1.52Kb)
1 Comment
Re: slow find-file for network file systems and very deep directories         


Author: AlFire
Date: Sep 18, 2008 18:19

Eli Zaretskii wrote:
>
> Can you compare the time it takes to visit the file when you type "C-x
> C-f" with what happens when you type this instead:
>
> M-: (find-file "W:\dir1\dir2\dir3\dir4\dir5\dir6\dir7\dir8\dir9\dirA\dirB\dirC\file.c") RET

still the same
> Also, do you happen to know if this was significantly faster in
> previous Emacs versions?

this:
GNU Emacs 21.3.1 (i386-mingw-nt5.1.2600) of 2004-03-10 on NYAUMO

works much faster then this:
GNU Emacs 22.2.1 (i386-mingw-nt5.1.2600) of 2008-03-26 on RELEASE

I chacked the number is file ops (using filemon again) and the number is
down to 130 from 800something.

Andy
no comments
Re: slow find-file for network file systems and very deep directories         


Author: Eli Zaretskii
Date: Sep 19, 2008 02:01

> From: AlFire ggmail.com>
> Date: Thu, 18 Sep 2008 18:19:42 -0700
>
> Eli Zaretskii wrote:
>
>>
>> Can you compare the time it takes to visit the file when you type "C-x
>> C-f" with what happens when you type this instead:
>>
>> M-: (find-file "W:\dir1\dir2\dir3\dir4\dir5\dir6\dir7\dir8\dir9\dirA\dirB\dirC\file.c") RET
>
>
> still the same
>
>
>> Also, do you happen to know if this was significantly faster in
>> previous Emacs versions?
>
> this:
> GNU Emacs 21.3.1 (i386-mingw-nt5.1.2600) of 2004-03-10 on NYAUMO ...
Show full article (1.07Kb)
1 Comment
Re: slow find-file for network file systems and very deep directories         


Author: AlFire
Date: Sep 22, 2008 20:34

Eli Zaretskii wrote:
>> From: AlFire ggmail.com>
>> Date: Thu, 18 Sep 2008 18:19:42 -0700
>>
>> Eli Zaretskii wrote:
>>
>>> Can you compare the time it takes to visit the file when you type "C-x
>>> C-f" with what happens when you type this instead:
>>>
>>> M-: (find-file "W:\dir1\dir2\dir3\dir4\dir5\dir6\dir7\dir8\dir9\dirA\dirB\dirC\file.c") RET
>>
>> still the same
>>
>>
>>> Also, do you happen to know if this was significantly faster in
>>> previous Emacs versions?
>> this:
>> GNU Emacs 21.3.1 (i386-mingw-nt5.1.2600) of 2004-03-10 on NYAUMO
>>
>> works much faster then this: ...
Show full article (1.23Kb)
no comments