[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: find-file takes forever on slow network file systems and very deep d
From: |
Eli Zaretskii |
Subject: |
Re: find-file takes forever on slow network file systems and very deep directories |
Date: |
Wed, 24 Sep 2008 22:02:43 +0300 |
[Please keep the emacs-devel list on the list of addressees.]
> Date: Tue, 23 Sep 2008 12:51:23 -0700
> From: "Andrzej Leszczynski" <address@hidden>
>
> > Thanks. I cannot spot anything significant: the traces look almost
> > identical, and the code of the suspect function (emulated `stat') is
> > virtually the same, up until the point where the value of
> > w32-get-true-file-attributes is checked (the value of which you said
> > made no difference).
> >
> > Previously you said that with Emacs 22.x, the number of file ops is
> > 889, but I don't see so many ops in the trace you posted to the above
> > URL. What am I missing?
> >
> > I also don't see the 15-sec delay in the trace: both the trace from
> > Emacs 22.x and from 21.x show about 2-3 seconds between the first
> > syscall and the last.
> >
> > Please help me understand the data.
> >
>
> the original log embedded in the email contains almost 900 lines and
> take 15 seconds - I guess you need to click on "read more"
>
> 64 2:45:51 PM
> [...]
> 952 2:46:06 PM
>
> and it is on emacs run with no .emacs file. Plase doble check if you
> can see that. w32-get-true-file-attributes does not improve it.
Right, I see the whole 900+ lines now.
It looks like the VC package could be the culprit: there are many
filesystem calls that look for files such as:
W:\dir1\dir2\dir3\dir4\dir5\dir6\dir7\.bzr\checkout\
W:\dir1\dir2\dir3\dir4\dir5\dir6\dir7\dir8\dir9\dirA\dirB\dirC\RCS\
W:\dir1\dir2\dir3\dir4\dir5\dir6\dir7\dir8\dir9\dirA\dirB\dirC\CVS\Entries
W:\dir1\dir2\dir3\dir4\dir5\dir6\dir7\dir8\dir9\dirA\dirB\dirC\.svn\entries
W:\dir1\dir2\dir3\dir4\dir5\dir6\dir7\dir8\dir9\dirA\dirB\dirC\SCCS\
W:\dir1\dir2\dir3\dir4\dir5\dir6\dir7\dir8\dir9\dirA\dirB\dirC\file.c\_MTN\
W:\dir1\dir2\dir3\dir4\dir5\dir6\dir7\dir8\dir9\dirA\dirB\{arch}\
W:\dir1\dir2\dir3\dir4\dir5\dir6\dir7\dir8\dir9\dirA\dirB\dirC\file.c\MCVS\
This greatly enlarges the number of files and directories Emacs needs
to `stat'.
Can you try evaluating the following expression (in Emacs 22.x):
(remove-hook 'find-file-hook 'vc-find-file-hook)
and then see if the speed of `find-file' increases significantly as a
result?
- find-file takes forever on slow network file systems and very deep directories, Andy Leszczynski, 2008/09/23
- Re: find-file takes forever on slow network file systems and very deep directories, Eli Zaretskii, 2008/09/23
- Message not available
- Re: find-file takes forever on slow network file systems and very deep directories, Eli Zaretskii, 2008/09/23
- Message not available
- Re: find-file takes forever on slow network file systems and very deep directories,
Eli Zaretskii <=
- Message not available
- Re: find-file takes forever on slow network file systems and very deep directories, Eli Zaretskii, 2008/09/26
- Re: find-file takes forever on slow network file systems and very deep directories, Lennart Borgman (gmail), 2008/09/26
- Re: find-file takes forever on slow network file systems and very deep directories, Stefan Monnier, 2008/09/26
- Re: find-file takes forever on slow network file systems and very deep directories, Eli Zaretskii, 2008/09/26
- Re: find-file takes forever on slow network file systems and very deep directories, Stefan Monnier, 2008/09/26