Re: File operations really slow in emacs

2012-02-16 Thread Corinna Vinschen
On Feb 16 08:17, Ryan Johnson wrote: > On 16/02/2012 6:09 AM, Corinna Vinschen wrote: > >I just applied a patch which calls NetUseGetInfo on SMB drives in > >the cygdrive::readdir call. As I mentioned above, if the function > >returns OK, we fetch the inode number. If the function returns > >"Dis

Re: File operations really slow in emacs

2012-02-16 Thread Ryan Johnson
Hi Corinna, On 16/02/2012 6:09 AM, Corinna Vinschen wrote: On Feb 15 10:24, Corinna Vinschen wrote: On Feb 14 14:50, Ryan Johnson wrote: Heisenburg? Impossible to know both what SMB share a mount points to and whether it's currently connected? Almost. You have to access the share to find out

Re: File operations really slow in emacs

2012-02-16 Thread Corinna Vinschen
On Feb 15 10:24, Corinna Vinschen wrote: > On Feb 14 14:50, Ryan Johnson wrote: > > Heisenburg? Impossible to know both what SMB share a mount points to > > and whether it's currently connected? Almost. You have to access the share to find out if it is really connected because the information ret

Re: File operations really slow in emacs

2012-02-15 Thread Corinna Vinschen
On Feb 15 04:35, Mark Geisert wrote: > Corinna Vinschen writes: > > > > Does anybody know a system call which allows to fetch the network drive > > > > state (connected/not connected) without a billion microsecond timeout? > > > > > > I just looked into this and I really don't see a way. While th

Re: File operations really slow in emacs

2012-02-15 Thread Corinna Vinschen
On Feb 14 14:50, Ryan Johnson wrote: > On 14/02/2012 12:57 PM, Corinna Vinschen wrote: > >On Feb 14 12:46, Ryan Johnson wrote: > >>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

Re: File operations really slow in emacs

2012-02-14 Thread Mark Geisert
Corinna Vinschen writes: > > > Does anybody know a system call which allows to fetch the network drive > > > state (connected/not connected) without a billion microsecond timeout? > > > > I just looked into this and I really don't see a way. While there's a > > NetUseGetInfo call, which is pretty

Re: File operations really slow in emacs

2012-02-14 Thread Ryan Johnson
On 14/02/2012 12:57 PM, Corinna Vinschen wrote: On Feb 14 12:46, Ryan Johnson wrote: 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 sta

Re: File operations really slow in emacs

2012-02-14 Thread Corinna Vinschen
On Feb 14 12:46, Ryan Johnson wrote: > 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) withou

Re: File operations really slow in emacs

2012-02-14 Thread Ryan Johnson
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 p

Re: File operations really slow in emacs

2012-02-14 Thread Corinna Vinschen
On Feb 14 18:18, Corinna Vinschen wrote: > On Feb 14 16:17, Corinna Vinschen wrote: > > So, even if we fix fstat, it doesn't solve the problem for readdir. The > > GetFileAttributes call is obviously supposed to find out if the drive is > > accessible. If not, it's omitted from the cygdrive dir.

Re: File operations really slow in emacs

2012-02-14 Thread Corinna Vinschen
On Feb 14 16:17, Corinna Vinschen wrote: > So, even if we fix fstat, it doesn't solve the problem for readdir. The > GetFileAttributes call is obviously supposed to find out if the drive is > accessible. If not, it's omitted from the cygdrive dir. Unfortunately... > > Does anybody know a system

Re: File operations really slow in emacs

2012-02-14 Thread Corinna Vinschen
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

Re: File operations really slow in emacs

2012-02-14 Thread Ryan Johnson
On 14/02/2012 10:17 AM, Corinna Vinschen wrote: On Feb 14 09:44, Ryan Johnson wrote: On 14/02/2012 8:52 AM, Corinna Vinschen wrote: On Feb 14 08:37, Ryan Johnson wrote: (\??\C:\cygwin\cygdrive,0x28BB68) ^^^ This looks suspicious. I assume you're suffering from SMB n

Re: File operations really slow in emacs

2012-02-14 Thread Corinna Vinschen
On Feb 14 09:44, Ryan Johnson wrote: > On 14/02/2012 8:52 AM, Corinna Vinschen wrote: > >On Feb 14 08:37, Ryan Johnson wrote: > >(\??\C:\cygwin\cygdrive,0x28BB68) > ^^^ > This looks suspicious. I assume you're suffering from SMB network > scanning. > >>

Re: File operations really slow in emacs

2012-02-14 Thread Ryan Johnson
On 14/02/2012 8:52 AM, Corinna Vinschen wrote: On Feb 14 08:37, Ryan Johnson wrote: Bump? Stagger! On 13/02/2012 8:31 AM, Ryan Johnson wrote: On 11/02/2012 5:11 AM, Corinna Vinschen wrote: On Feb 10 20:18, Ryan Johnson wrote: Hi all, For some reason file operations have become very slow i

Re: File operations really slow in emacs

2012-02-14 Thread Corinna Vinschen
On Feb 14 08:37, Ryan Johnson wrote: > Bump? Stagger! > On 13/02/2012 8:31 AM, Ryan Johnson wrote: > >On 11/02/2012 5:11 AM, Corinna Vinschen wrote: > >>On Feb 10 20:18, Ryan Johnson wrote: > >>>Hi all, > >>> > >>>For some reason file operations have become very slow inside emacs > >>>starting ye

Re: File operations really slow in emacs

2012-02-14 Thread Ryan Johnson
Bump? On 13/02/2012 8:31 AM, Ryan Johnson wrote: On 11/02/2012 5:11 AM, Corinna Vinschen wrote: On Feb 10 20:18, Ryan Johnson wrote: Hi all, For some reason file operations have become very slow inside emacs starting yesterday. It's especially painful when saving a file that's managed by merc

Re: File operations really slow in emacs

2012-02-13 Thread Corinna Vinschen
On Feb 13 08:31, Ryan Johnson wrote: > On 11/02/2012 5:11 AM, Corinna Vinschen wrote: > >>(\??\C:\cygwin\cygdrive,0x28BB68) > > ^^^ > > This looks suspicious. I assume you're suffering from SMB network > > scanning. > Turns out you were right after all. I have Z: mapped t

Re: File operations really slow in emacs

2012-02-13 Thread Ryan Johnson
On 11/02/2012 5:11 AM, Corinna Vinschen wrote: On Feb 10 20:18, Ryan Johnson wrote: Hi all, For some reason file operations have become very slow inside emacs starting yesterday. It's especially painful when saving a file that's managed by mercurial (more than 20 seconds!), but I've seen it on

Re: File operations really slow in emacs

2012-02-11 Thread Christopher Faylor
On Sat, Feb 11, 2012 at 02:50:31PM -0500, Ryan Johnson wrote: >On 11/02/2012 12:24 PM, Christopher Faylor wrote: >> On Sat, Feb 11, 2012 at 09:21:11AM -0500, Ryan Johnson wrote: >>> On 11/02/2012 5:11 AM, Corinna Vinschen wrote: On Feb 10 20:18, Ryan Johnson wrote: > Hi all, > > Fo

Re: File operations really slow in emacs

2012-02-11 Thread Ryan Johnson
On 11/02/2012 12:24 PM, Christopher Faylor wrote: On Sat, Feb 11, 2012 at 09:21:11AM -0500, Ryan Johnson wrote: On 11/02/2012 5:11 AM, Corinna Vinschen wrote: On Feb 10 20:18, Ryan Johnson wrote: Hi all, For some reason file operations have become very slow inside emacs starting yesterday. It

Re: File operations really slow in emacs

2012-02-11 Thread Christopher Faylor
On Sat, Feb 11, 2012 at 09:21:11AM -0500, Ryan Johnson wrote: >On 11/02/2012 5:11 AM, Corinna Vinschen wrote: >> On Feb 10 20:18, Ryan Johnson wrote: >>> Hi all, >>> >>> For some reason file operations have become very slow inside emacs >>> starting yesterday. It's especially painful when saving a

Re: File operations really slow in emacs

2012-02-11 Thread Ryan Johnson
On 11/02/2012 5:11 AM, Corinna Vinschen wrote: On Feb 10 20:18, Ryan Johnson wrote: Hi all, For some reason file operations have become very slow inside emacs starting yesterday. It's especially painful when saving a file that's managed by mercurial (more than 20 seconds!), but I've seen it on

Re: File operations really slow in emacs

2012-02-11 Thread Corinna Vinschen
On Feb 10 20:18, Ryan Johnson wrote: > Hi all, > > For some reason file operations have become very slow inside emacs > starting yesterday. It's especially painful when saving a file > that's managed by mercurial (more than 20 seconds!), but I've seen > it on the command line as well (x-server tak

File operations really slow in emacs

2012-02-10 Thread Ryan Johnson
Hi all, For some reason file operations have become very slow inside emacs starting yesterday. It's especially painful when saving a file that's managed by mercurial (more than 20 seconds!), but I've seen it on the command line as well (x-server takes a similar amount of time to start, for ex