Page 1 of 1

Program steps when opening a location in a tab

Posted: 06 May 2014 10:05
by Borut
The background:

I use tabsets heavily - one tabset per project. One location (=tab) in almost each of my projects is a folder on a non-mapped network drive, which is actually an FTP folder seen also from the outer world. In my work flow this is also the active tab when the tabset is loaded (the idea being: Let's first see if there any new files to be processed).

The problem:

On that level there are several hundred directories (sibling nodes in the tree). I just need to get the file list of my particular directory (which is actually empty most of the time) before my eyes, but I need that reasonably fast. However, XY seems to first enumerate the whole directory level, in order to build the tree first. It takes time... many long seconds (slow network, slow server, both slow, what not... no idea; there are usually just a few files in the whole directory structure; it is only the number of sibling directories that is somewhat large). It is only then that the file list of my active/initial tab appears.

The wish:

Although the current program steps sequence seems logical (and perhaps even necessary, alas) from the programmer's point of view, it is quite frustrating from the user's point of view. Could something perhaps be done about it, in order to minimize the time past before the file list is being presented?

Re: Program steps when opening a location in a tab

Posted: 06 May 2014 10:13
by admin
Lock the tree?

Re: Program steps when opening a location in a tab

Posted: 06 May 2014 10:50
by Borut
:?: Locking is neither needed, nor would it help, as far as I understand.

I have to be more precise. This delay happens only when I go in one of these many parallel folders for the first time after XY has been started. My problem is, that this is the moment when my tabset loads, while this is the most important location for me there (=first visible tab). If I later go to that same or any other parallel directory there is no more delay. Also, if I later load any other tabset (or reload the same one), whose active tab points to any of those locations (visited or not; it suffices that at least one of them has already been visited before), no more delay is noticeable.

It could be even worse. I have just tested the following scenario (which I do not normally use): When exiting XY, I left the current tabset active and the current tab pointed to one of these folders. Restarted. Then it takes eternity (=could be some 10-15 sec), before any notion of XY appears on screen. The impulse is not to wait, but to click the XY link icon once more.

So, it seems that after once being in one of those many parallel directories, this is somehow cashed in XY and does not need that time again.

The whole thing is not noticeable with similar number of parallel local directories, due to fast local disc response time, I guess.

Re: Program steps when opening a location in a tab

Posted: 06 May 2014 11:04
by admin
So, again (sorry): locking the tree does not make it any faster?

Re: Program steps when opening a location in a tab

Posted: 06 May 2014 11:24
by Borut
Ah, I previously thought about locking location instead of locking tree. Now I have locked the tree (it is now grayed out and no changes are there to be seen; this persists between sessions).

Unfortunately, this delay is still there (under the previously described circumstances, i.e. only at the first visit after XY has been restarted).

(Please note that I use AutoOptimizeTreeRadical=1 just in case that might have something to do with it).

Perhaps an additional fact, perhaps of some use:

If the parent folder (the one containing several hundred mostly empty subfolders) is mapped to a drive letter (=defined as a mapped drive, say Z:) and tab location is defined using this logical mapping (say like Z:\oneofmany\ instead of \\server\subfolderwithmany\oneofmany\) than no delay is noticeable whatsoever. Actually, this is how I had used this for years. It is only recently, as I had to abandon such a drive mapping, that I noticed this delay.

Re: Program steps when opening a location in a tab

Posted: 06 May 2014 11:29
by admin
I conclude it is a network issue and not so much related to the scanning of subfolders.

Re: Program steps when opening a location in a tab

Posted: 06 May 2014 11:45
by Borut
Might be, but it is definitely not noticeable in MSE. However, it must be said that MSE does not show other siblings in the tree when such a path is pasted into its AB (at least not at my place, Win7).

Therefore I initially suggested either not to scan siblings (under some circumstances), or to scan them and update the tree only after showing the list first.

Re: Program steps when opening a location in a tab

Posted: 06 May 2014 12:16
by admin
If the tree is locked and the siblings not shown they are not scanned. If you get a delay anyway, the siblings are not the cause of it.

Re: Program steps when opening a location in a tab

Posted: 06 May 2014 12:31
by Borut
Yesss, I agree, especially taking into account my latest find:

If "Cache network servers" is checked, then this problem is eliminated. So, maybe the first location of type \\servername\... in a session provokes immediate server browsing or something like that. Maybe not the optimal moment to do this (at least not in my case).

I am unsure if this would mean any drawbacks in another network later (portable usage scenario).

(Also, having this checked, I have even more security concerns in a portable environment, but this is another, long and a well known story.)

Re: Program steps when opening a location in a tab

Posted: 06 May 2014 12:42
by admin
Borut wrote:So, maybe the first location of type \\servername\... in a session provokes immediate server browsing or something like that. Maybe not the optimal moment to do this (at least not in my case).
Yes, true. And necessary. It must be done.