Loading WSL Folder takes 40 Seconds

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
matt9182
Posts: 3
Joined: 30 Nov 2023 17:40

Loading WSL Folder takes 40 Seconds

Post by matt9182 »

I'm new to the product. I'm very impressed so far. However, when navigating to a WSL folder for the first time, it takes about 40 seconds. Similarly, if I try to launch XYplorer with a WSL folder active, it takes 40 seconds for .

Setup:
  • Windows 10 Pro
  • This is a new clean install this morning. I've disabled Color Filters, Instant Color Filters, Visual Filters. I've closed the Tree View. I'm using the default columns (name, ext, type, modified, created).
  • Windows Explorer and Xplorer2 open these folders instantly.

When running "text <get loadtimes>, 800, 680;" I get:

XY ver: XYplorer 25.20.0100 - 30-Day Trial Version - Day 1
OS: Windows 10 Pro, 64-bit, Version 22H2, Build 19045.3693 (10.0)
Loaded: 2023-11-30 09:59:24 in 39,368 ms
Threshold: 10 ms (shorter tasks are skipped below)

0 ms: 603 ms - Start Load
603 ms: 27 ms - Init Language
630 ms: 79 ms - Load Language
709 ms: 103 ms - Load Settings
812 ms: 37 ms - Init Custom File Icons
849 ms: 113 ms - Init Controls
962 ms: 342 ms - Init Graphics
1,304 ms: 38 ms - Init Tabs
1,342 ms: 88 ms - Create Info Panel
1,430 ms: 156 ms - Set Interface Font
1,586 ms: 71 ms - Init Panes
1,682 ms: 36,535 ms - Enumerating Network Servers
38,236 ms: 303 ms - Go Start Path: \\wsl$\Ubuntu-18.04\code2\ear\src\
38,539 ms: 115 ms - Init Custom Toolbar Buttons
38,654 ms: 11 ms - Init UDC and KS
38,668 ms: 66 ms - List 1 Browse: \\wsl$\Ubuntu-18.04\code2\ear\src\
38,741 ms: 12 ms - List 2 Browse: C:\
38,758 ms: 13 ms - Layout Bars
38,771 ms: 27 ms - Layout List
38,798 ms: 11 ms - Layout Status Bar
38,809 ms: 225 ms - --- Show Window ---
39,038 ms: 330 ms - Tree Check Subfolders Exist Late
39,368 ms: - Load Done

MaxiTree: Rows=60, Nodes=61, Expanded=7, Servers=1
Tree Check Subfolders Exist: Yes
Icon Overlays (List, Tree, Network): Yes, No, No
Network on Startup: Browse=Yes, Reconnect=No, CacheServers=No
Pane 1: Items=33/88, Network, Pane 2: Items=4/49, Catalog: Items=1
Tagged Items in Database: 0
Attachments
2023-11-30 11_05_04-__wsl$_Ubuntu-18.04 - XYplorer ### 30-Day Trial Version - Day 1 ### - 25.20.0100.png
2023-11-30 11_05_04-__wsl$_Ubuntu-18.04 - XYplorer ### 30-Day Trial Version - Day 1 ### - 25.20.0100.png (70.81 KiB) Viewed 433 times

admin
Site Admin
Posts: 60146
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: Loading WSL Folder takes 40 Seconds

Post by admin »

Hi there,

this is unusual. Can't explain it. Does the problem persist?

Anyway, here's a tip for your load times: You can skip network browsing on startup by checking this: Configuration | General | Startup & Exit | No network browsing on startup.

matt9182
Posts: 3
Joined: 30 Nov 2023 17:40

Re: Loading WSL Folder takes 40 Seconds

Post by matt9182 »

Yes, this issue is reproducible. I've rebooted multiple times. I've tested both on my work pc (Windows 10 Pro, Dell 5540 i9) and home pc (Windows 11 Pro, custom). I consistently see this when accessing a WSL (Windows Subsystem for Linux) folder for the first time. After the initial 40 second wait it seems fine. But if I restart xyplorer, I get the 40s wait again.

This morning I noticed a message in the bottom status bar of "enumerating servers in Network...".

admin
Site Admin
Posts: 60146
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: Loading WSL Folder takes 40 Seconds

Post by admin »

40s! That's a bit thick. How about the other WSL users here? Is anyone getting numbers like this?

admin
Site Admin
Posts: 60146
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: Loading WSL Folder takes 40 Seconds

Post by admin »

You might want to see if v25.20.0112 is faster: viewtopic.php?p=216249#p216249

admin
Site Admin
Posts: 60146
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: Loading WSL Folder takes 40 Seconds

Post by admin »

No reaction from anyone? I was expecting at least some "Nothing works anymore!" or "My network node is empty!" In v25.20.0112 I made some drastic changes to network enumeration... :eh: Or how about a "Everything is so much faster now!" :)

GreetingsFromPoland
Posts: 206
Joined: 29 Sep 2022 14:20

Re: Loading WSL Folder takes 40 Seconds

Post by GreetingsFromPoland »

hi! i don't use WSL directly, but i went ahead and tried to access some shares, etc. that are on it (the default Windows 10 WSL 2 setup).

i don't have anything to compare speeds before/after to, but browsing the WSL shares is very snappy and responsive.

typing the following in the address bar,

\\wsl$ and \\wsl.localhost\ - not working in XY (shows Location currently not available), works in Explorer (lists all the available shares)
\\wsl.localhost\Ubuntu - works in both
\\wsl.localhost\docker-desktop - works in both

since i don't use paths directly like this, i may be doing it incorrectly; however, what i did browse up in XY was fast.

when i use fresh(); and then click on Network in the Tree, i get "Enumerating Network Servers" for ~45 seconds or so and then nothing displayed under Network. i do not have this delay in my normal XY setup, only saw it in Fresh (which i don't use unless troubleshooting).

admin
Site Admin
Posts: 60146
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: Loading WSL Folder takes 40 Seconds

Post by admin »

That test was made with v25.20.0112?

I assume \\wsl$ and \\wsl.localhost\ do work in v25.20.0111 and earlier, right?

GreetingsFromPoland
Posts: 206
Joined: 29 Sep 2022 14:20

Re: Loading WSL Folder takes 40 Seconds

Post by GreetingsFromPoland »

admin wrote: 03 Dec 2023 14:51 That test was made with v25.20.0112?
yes, v25.20.0112
admin wrote: 03 Dec 2023 14:51 I assume \\wsl$ and \\wsl.localhost\ do work in v25.20.0111 and earlier, right?
yes, previous version(s) did work. it's been some time since i used the UNC path to access it; however, i don't recall ever getting the "Location currently not available" message (otherwise i would have searched here and/or posted about it).

admin
Site Admin
Posts: 60146
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: Loading WSL Folder takes 40 Seconds

Post by admin »

OK, thanks for the feedback!

matt9182
Posts: 3
Joined: 30 Nov 2023 17:40

Re: Loading WSL Folder takes 40 Seconds

Post by matt9182 »

Thanks for the replies! I tested XY 25.20.0112. Browsing WSL paths works for me in the beta, but it is still slower than expected. The delay appears to be reduced to 29-30s (tested multiple times, see sample below).

Here is some more experimenting:
  • Accessing mapped drives in XY is fast. I don't see any delay.
  • Navigating to "Network" in XY produces the same delay as access a WSL path (about 30s using beta). I'm OK with that. I rarely want to list all of the Network resources.
  • Navigating to "Network" in both XY and xplorer2 produces a delay (30-32s).
  • However, navigating to "\\wsl.localhost\Ubuntu\home\matt" in Windows Explorer and xplorer2 is instant (too fast to start my stopwach), but XY is 30s. This makes me suspect that it is possible to navigate to a WSL folder without enumerating all servers in the network.
  • Navigating to a Windows Share UNC path (\\BasementServer\Shares\Photos) in XY takes 30s. However it is instant in Windows Explorer and xplorer2. This supports the theory that there is a faster way to lookup a single UNC path than enumerating all network servers.
Results from the beta:

Code: Select all

XY ver: 	XYplorer 25.20.0112 - 30-Day Trial Version - Day 5
OS:     	Windows 11 Pro, 64-bit, Version 21H2, Build 22000.2538 (10.0)
Loaded: 	2023-12-03 07:51:59 in 30,299 ms
Threshold: 	10 ms (shorter tasks are skipped below)

     0 ms:     258 ms - Start Load
   258 ms:      18 ms - Init Language
   276 ms:      43 ms - Load Language
   319 ms:      64 ms - Load Settings
   383 ms:      15 ms - Init Custom File Icons
   398 ms:      56 ms - Init Controls
   454 ms:     190 ms - Init Graphics
   644 ms:      20 ms - Init Tabs
   664 ms:      50 ms - Create Info Panel
   714 ms:     101 ms - Set Interface Font
   815 ms:      32 ms - Init Panes
   866 ms:  29,006 ms - Enumerating Folder Objects
29,881 ms:      24 ms - Go Start Path: \\wsl.localhost\Ubuntu\
29,905 ms:      28 ms - Enumerating Folder Objects
29,933 ms:      64 ms - Init Custom Toolbar Buttons
30,004 ms:      20 ms - List 1 Browse: \\wsl.localhost\Ubuntu\
30,028 ms:      13 ms - List 2 Browse: C:\
30,047 ms:      72 ms - Layout List
30,123 ms:      94 ms - --- Show Window ---
30,219 ms:      80 ms - Tree Check Subfolders Exist Late
30,299 ms:            - Load Done

MaxiTree: Rows=21, Nodes=22, Expanded=4, Mapped Drives=4, Servers=1
Tree Check Subfolders Exist: Yes
Icon Overlays (List, Tree, Network): Yes, No, No
Network on Startup: Browse=Yes, Reconnect=No, CacheServers=No
Pane 1: Items=24/24, Network, Pane 2: Items=4/36, Catalog: Items=1
Tagged Items in Database: 0
Last edited by matt9182 on 03 Dec 2023 16:40, edited 3 times in total.

admin
Site Admin
Posts: 60146
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: Loading WSL Folder takes 40 Seconds

Post by admin »

There are many options now, and the next beta will bring even more, but for now try to cache the servers:

Configuration | General | Safety Belts, Network | Network | Cache network servers

matt9182
Posts: 3
Joined: 30 Nov 2023 17:40

Re: Loading WSL Folder takes 40 Seconds

Post by matt9182 »

admin wrote: 03 Dec 2023 16:39 There are many options now, and the next beta will bring even more, but for now try to cache the servers:

Configuration | General | Safety Belts, Network | Network | Cache network servers
This fixed my issue! Thanks for the great support. I just purchased a Pro license.

admin
Site Admin
Posts: 60146
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: Loading WSL Folder takes 40 Seconds

Post by admin »

Wow, you act fast. :tup:

Post Reply