Page 1 of 1

Network folders

Posted: 24 Mar 2015 23:49
by Quaraxkad
This is less of a bug and more of a performance issue, but it does seem to be somewhat counter-intuitive so it could be a bug behind-the-scenes.

Most of my browsing is done over network shares on my file server. There are some folders that contain thousands of subfolders. Opening these folders is typically pretty quick. Not long enough to bother timing it. The issue is when double-clicking on one of the thousands of subfolders. In a folder containing for example 1,039 folders, it takes roughly 6 seconds to open any subfolder, even though it only contains a couple of files itself. It takes even longer with larger parent folders. So basically it takes longer to navigate OUT of a large folder than it does to navigate IN to one. This only happens on the first try. If I press back and double-click any other subfolder, it loads instantly with no delay. This is consistently reproducible in the latest version of XY on a fresh install with no configuration tweaks, every time. I also use XY on the file server itself, and the issue persists when browsing into and out of these folders locally though the delay is roughly halved. So it's not a network-specific issue but the network does amplify the problem.

And there's another issue that may be related. I sometimes delete a folder that is currently open and displayed in XY by right-clicking its icon in the Address Bar and selecting Delete. Doing this requires a certain option to be disabled to view the proper context menu rather than breadcrumbs, that option is: Configuration | Controls and More | Auto-Complete Path Names | Address Bar. Normally what happens is that the folder is deleted and XY automatically navigates UP to the parent folder. But if the parent folder contains a lot files or folders like mentioned above, XY freezes for a while. As a test I deleted a folder containing only three files (and no folders) using this method. Its parent folder contained 1,427 folders (after deletion). XY froze for 11 seconds and then displays the parent folder list but is still frozen for another 9 seconds before it becomes responsive again. So it takes ~20 seconds overall to delete one folder and navigate UP. *Not* deleting the folder and instead just navigating UP is instantaneous.

I can capture a video if my explanations are unclear, I had to do that for a few other obscure bugs I have reported in the past...

Re: Network folders

Posted: 25 Mar 2015 10:43
by admin
Is this on a mapped drive or UNC path?

Re: Network folders

Posted: 25 Mar 2015 15:25
by Quaraxkad
It was initially on UNC paths and I didn't try a mapped network drive, but half way through posting I tested it with XY on the file-server itself, accessing the drives locally by their drive letter instead of over the network and the delays occurred in the same manner, but shorter by about half. I probably should have re-written the parts that specified "network" folders as it seems to happen on local folders as well but the problem is greatly amplified over the network, presumably due to the latency. So it may not be noticeable on local folders unless they are massive.

I tried to monitor what was happening using SmartSniff. SMB traffic is not exactly human readable but you can see file and folder names and I did notice something strange. When navigating to a sample folder with 1,039 subfolders the full content listing takes 0.298 seconds, with SmartSniff showing 256 packets totaling 180,450 Bytes. When opening a subfolder which in this test instance contains one 0-byte file and no folders, there are 14,885 packets transmitted totaling 3,118,880 Bytes and that took 4.871 seconds. In the transmitted packets I see lots of folders mentioned that are in the parent directory but not in the subfolder I navigated to. I don't know if XY is trying to get folder properties or attributes or something. After that initial 3MB "burst" I can press back or up, then navigate back to that same subfolder or to any other subfolder with no delay and SmartSniff shows less than 100 packets per folder (for the few files they each do contain). This may have been some weird SMB behavior but it does happen on local folders as well, it was just easier to capture the network traffic in SmartSniff than local activity. I could try monitoring the same thing on local folders using ProcMon but that's much more complicated to set up all the necessary filters.

I also monitored Explorer navigating to the same folder and subfolder(s). There are no delays there and SmartSniff shows that initial 3MB of traffic does not occur like it does in XY.

It's probably important to note that the delay happens only once per XY instance for each "large folder". I can navigate away and do other things, come back to the same folder later and there's no delay. But then I close and relaunch XY and the delay occurs on those same large folders again.

Re: Network folders

Posted: 25 Mar 2015 18:58
by admin
Please try two things:

1) Uncheck Configuration > File Info Tips > Show file info tips
2) Turn on Mini Tree: View | Mini Tree | Mini Tree

Is it faster now?

Re: Network folders

Posted: 25 Mar 2015 20:28
by Quaraxkad
Show File Info Tips was actually unchecked already, so I skipped that.

Enabling Mini Tree though did remove the delay entirely! What's odd is that I don't even use the Tree and it is hidden from the UI (Shift+F8). So I guess XY is trying to keep the treeview updated even when it's not visible? That setting seems to have fixed both of the issues I mentioned here. It also fixed a very frequent issue I hadn't even thought of while posting: When launching an XY instance from a shortcut where the destination is beneath one of these large folders would take 5-10 seconds before launching. It is now nearly instant!

Thanks!!

Re: Network folders

Posted: 25 Mar 2015 20:41
by admin
Good.


Other probably related settings are these:

Configuration > Tree and List > Tree > Check existence of subfolders in tree
Configuration > Tree and List > Tree > In network locations as well


Checking the existence of subfolders in tree (i.e. the decision of whether a non-expanded tree node gets a "plus" symbol or not) can take a lot of time if there a many thousand folders to check.
The Mini Tree works around this problem by showing only the one folder you just opened, not all of its countless brothers and sisters.