This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: File operations really slow in emacs


On 14/02/2012 11:26 AM, Corinna Vinschen wrote:
On Feb 14 10:47, Ryan Johnson wrote:
On 14/02/2012 10:17 AM, Corinna Vinschen wrote:
Does anybody know a system call which allows to fetch the network drive
state (connected/not connected) without a billion microsecond timeout?
[...]
What if we parsed the mount table instead of calling readdir? I
don't know how that's computed, but it's never been a performance
problem, it only shows drives that are actually connected [...]
What mount table?  Cygwin's?  It calls GetFileAttributes on the drive's
root dir as well...
This is bizarre... what would cause calls to the same Windows API function behave so differently when called by stat vs ls vs bash-autocomplete? I'm happy to accept that there's some weirdness on my box, but I would have expected that weirdness to be consistent at any given instant in time (either all go slow or all behave normally).

At least the problem has gone back into hiding for the moment... I guess I'll just have to hope Windows doesn't change its mind again for a while.

Thanks for looking into this.
Ryan


-- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]