XY keeps preloading folder at startup....

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
kunkel321
Posts: 645
Joined: 10 Jun 2012 03:45
Location: Near Seattle

XY keeps preloading folder at startup....

Post by kunkel321 »

You can see that XY spent several second loading my PortableApps folder. The folder wasn't opened in any tabs or panes though.. It has done this multiple times with the same folder. Mostly this only happens during the first XY launch of the day. It appears to be "adding" every subfolder of my PortableApps folder... Any ideas on what setting might cause this?

Actually... My xyplorer portable folder is not in the list... Not sure why.


XY ver: XYplorer 21.50.0115
OS: Windows 10 Enterprise, 64-bit, Release 2009, Build 19042.928
Loaded: 2021-05-04 06:32:45 in 18,295 ms
Threshold: 10 ms

0 ms: 389 ms - Start Load
389 ms: 15 ms - Init Language
404 ms: 89 ms - Load Language
493 ms: 143 ms - Load Settings
644 ms: 51 ms - Init Controls
695 ms: 147 ms - Init Graphics
842 ms: 35 ms - Init Tabs
877 ms: 82 ms - Create Info Panel
959 ms: 158 ms - Set Interface Font
1,117 ms: 96 ms - Init Panes
1,223 ms: 14 ms - Add Portable Devices
1,237 ms: 30 ms - Tab Icons
1,267 ms: 16 ms - Load Catalog
1,283 ms: 11 ms - Load Tags
1,294 ms: 134 ms - Load Folder Size Cache
1,437 ms: 12 ms - Add Folder C:\PortableApps
1,449 ms: 17 ms - Add Folder C:\Program Files
1,469 ms: 21 ms - Add Folder C:\Windows10Upgrade
1,490 ms: 135 ms - Add Folder C:\PortableApps\7-Zip
1,625 ms: 120 ms - Add Folder C:\PortableApps\advancedrun-x64
1,745 ms: 916 ms - Add Folder C:\PortableApps\AppFolderIcon_v0-1-0
2,661 ms: 1,046 ms - Add Folder C:\PortableApps\ascgen_b13KEEP
3,707 ms: 292 ms - Add Folder C:\PortableApps\AutoHotkey
3,999 ms: 25 ms - Add Folder C:\PortableApps\awesome_photo_finder
4,024 ms: 102 ms - Add Folder C:\PortableApps\AWIcons
4,126 ms: 60 ms - Add Folder C:\PortableApps\Calibre Portable
4,186 ms: 292 ms - Add Folder C:\PortableApps\Capture2Text642
4,478 ms: 22 ms - Add Folder C:\PortableApps\ccsetup570
4,500 ms: 20 ms - Add Folder C:\PortableApps\ClipboardHelpAndSpellPortable
4,520 ms: 23 ms - Add Folder C:\PortableApps\cpu-z_1.93-en
4,543 ms: 29 ms - Add Folder C:\PortableApps\DropIt_v8.5.1_Portable
4,572 ms: 3,341 ms - Add Folder C:\PortableApps\EditPadPro8
7,913 ms: 18 ms - Add Folder C:\PortableApps\FindAndRunRobotPortable
7,931 ms: 13 ms - Add Folder C:\PortableApps\icecream
7,944 ms: 564 ms - Add Folder C:\PortableApps\icofx_portable
8,508 ms: 546 ms - Add Folder C:\PortableApps\Insofta 3D Text Commander
9,054 ms: 23 ms - Add Folder C:\PortableApps\Insofta Cover Commander
9,077 ms: 13 ms - Add Folder C:\PortableApps\NirSoft
9,090 ms: 22 ms - Add Folder C:\PortableApps\Notepad3_x64
9,112 ms: 20 ms - Add Folder C:\PortableApps\npp
9,132 ms: 22 ms - Add Folder C:\PortableApps\PortableApps.com
9,154 ms: 13 ms - Add Folder C:\PortableApps\ProgFiles
9,167 ms: 271 ms - Add Folder C:\PortableApps\RaptureReplica
9,438 ms: 6,454 ms - Add Folder C:\PortableApps\RWIconEditor
15,892 ms: 30 ms - Add Folder C:\PortableApps\ScreenshotCaptorPortable
15,922 ms: 30 ms - Add Folder C:\PortableApps\ScreenToGif.2.26.1.Portable
15,952 ms: 1,448 ms - Add Folder C:\PortableApps\SetFolderColour2
17,401 ms: 24 ms - Add Folder C:\PortableApps\Software
17,425 ms: 102 ms - Add Folder C:\PortableApps\SysinternalsSuite
17,527 ms: 26 ms - Add Folder C:\PortableApps\TheMatrixTrilogy062-64
17,553 ms: 25 ms - Add Folder C:\PortableApps\tnp621se_uni
17,585 ms: 13 ms - Add Folder C:\PortableApps\AutoHotkey\MacroCreator64
17,599 ms: 74 ms - Add Folder C:\PortableApps\AutoHotkey\MasterScript\Transpan
17,673 ms: 290 ms - Init Custom Toolbar Buttons
17,963 ms: 24 ms - Init UDC and KS
17,987 ms: 34 ms - Load This Pane
18,021 ms: 22 ms - Set LookIn Text
18,043 ms: 22 ms - Load Other Pane
18,071 ms: 79 ms - Layout List
18,150 ms: 140 ms - Show Window
18,295 ms: - Load Done

MaxiTree: Rows=98, Nodes=102, Expanded=5
Pane 1: Items=3/31, Pane 2: Items=10/10, Catalog: Items=1
ste(phen|ve) kunkel

kunkel321
Posts: 645
Joined: 10 Jun 2012 03:45
Location: Near Seattle

Re: XY keeps preloading folder at startup....

Post by kunkel321 »

Update:

I removed my Mixed column (that has multiple scripts) from my Default view. Today's first-start-of-the-day was much faster. (Pasted below.) Interestingly, xy is still loading odd folders. I had one tab in each pane -- Desktop and Downloads. I've been accessing WordDocs quite a bit, but Dopus, RoboTasks, and Fonts etc? I haven't touched those in ages. And I see that it is accessing TylerB and PeterO. Those are tech guys at my work place. Not sure why they would be accessed. I will keep experimenting...

Question for Don or Others: When it "Adds folder" what is actually happening to the folder? And why? Is it because xy is preparing to open it in a pane?

Probably unrelated. Over the past several months I've had multiple (3, I think) times when the a script crashed for no apparent reason. Each time is has happened, xy will be running, but in the background. It will have been untouched for several minutes. Other apps will be in the foreground and maximized. And I'm usually not even using my laptop, then the script error dialog will pop up, but it will be empty (no script information in it). I haven't had a chance to report it, and have no clue how to 're-create' it. I have a hunch that it is related to that Mixed column -- but I don't know. Is there a way to debug this type of thing?


XY ver: XYplorer 21.50.0115
OS: Windows 10 Enterprise, 64-bit, Release 2009, Build 19042.928
Loaded: 2021-05-05 07:12:51 in 3,492 ms
Threshold: 10 ms

0 ms: 483 ms - Start Load
483 ms: 26 ms - Init Language
509 ms: 79 ms - Load Language
588 ms: 123 ms - Load Settings
719 ms: 51 ms - Init Controls
770 ms: 162 ms - Init Graphics
932 ms: 38 ms - Init Tabs
970 ms: 77 ms - Create Info Panel
1,047 ms: 181 ms - Set Interface Font
1,228 ms: 151 ms - Init Panes
1,390 ms: 13 ms - Add Portable Devices
1,408 ms: 17 ms - Load Catalog
1,425 ms: 17 ms - Load Tags
1,442 ms: 204 ms - Load Folder Size Cache
1,655 ms: 17 ms - Add Folder C:\PortableApps
1,672 ms: 18 ms - Add Folder C:\Program Files
1,699 ms: 17 ms - Add Folder C:\Users\PeterO
1,716 ms: 18 ms - Add Folder C:\Users\TylerB
1,735 ms: 11 ms - Add Folder C:\Users\StephenK\Application Data
1,767 ms: 18 ms - Add Folder C:\Users\StephenK\PrintHood
1,785 ms: 12 ms - Add Folder C:\Users\StephenK\Recent
1,797 ms: 11 ms - Add Folder C:\Users\StephenK\Saved Games
1,808 ms: 22 ms - Add Folder C:\Users\StephenK\Searches
1,846 ms: 33 ms - Add Folder C:\Users\StephenK\OneDrive\DOpus
1,880 ms: 10 ms - Add Folder C:\Users\StephenK\OneDrive\Fonts Etc
1,891 ms: 33 ms - Add Folder C:\Users\StephenK\OneDrive\RoboTasks
1,924 ms: 95 ms - Add Folder C:\Users\StephenK\OneDrive\WordDocs
2,019 ms: 1,029 ms - Init Custom Toolbar Buttons
3,048 ms: 31 ms - Init UDC and KS
3,079 ms: 28 ms - Load This Pane
3,107 ms: 20 ms - Set LookIn Text
3,127 ms: 17 ms - Load Other Pane
3,145 ms: 10 ms - Layout Bars
3,155 ms: 170 ms - Layout List
3,325 ms: 155 ms - Show Window
3,492 ms: - Load Done

MaxiTree: Rows=78, Nodes=82, Expanded=5
Pane 1: Items=20/22, Pane 2: Items=1/1, Catalog: Items=1
ste(phen|ve) kunkel

highend
Posts: 13274
Joined: 06 Feb 2011 00:33

Re: XY keeps preloading folder at startup....

Post by highend »

Is there a way to debug this type of thing?
Let the script write a log file by spitting out <cc_item_ds> with a timestamp affix.
Maybe that helps to see if the script failed at some point or if it can be ruled out...
One of my scripts helped you out? Please donate via Paypal

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

Re: XY keeps preloading folder at startup....

Post by admin »

FYI, "Add Folder" means "Add Folder to Tree" (next version will say so). So each of those folders are shown in the tree. The question is why these folders are so slow.

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

Re: XY keeps preloading folder at startup....

Post by admin »

BTW, could you check if this is ticked: Configuration | General | Refresh, Icons, History | Icons | Show icon overlays
This can really slow down startup if your tree is showing many folders.

I wonder how this work could be limited. Could it e.g. be that icon overlays are usually only shown on the system drive? If that's the case we could speed up the loading considerably.

Horst
Posts: 1085
Joined: 24 Jan 2021 12:27
Location: Germany

Re: XY keeps preloading folder at startup....

Post by Horst »

admin wrote: 05 May 2021 18:15 BTW, could you check if this is ticked: Configuration | General | Refresh, Icons, History | Icons | Show icon overlays
This can really slow down startup if your tree is showing many folders.

I wonder how this work could be limited. Could it e.g. be that icon overlays are usually only shown on the system drive? If that's the case we could speed up the loading considerably.
No, icon overlays are very often necessary on non system drives.
For example many programmers have their repositories there
and want to see the status of the files.
Windows 11 Home x64 Version 23H2 (OS Build 22631.3374)
Portable XYplorer (actual version, including betas)
Everything 1.5.0.1371a (x64), Everything Toolbar 1.3.2, Listary Pro 6.3.0.69

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

Re: XY keeps preloading folder at startup....

Post by admin »

OK. Are there maybe any other ways to limit the work? Asking hundreds of vanilla folders whether they have an overlay is just a waste of time and electricity.

kunkel321
Posts: 645
Joined: 10 Jun 2012 03:45
Location: Near Seattle

Re: XY keeps preloading folder at startup....

Post by kunkel321 »

admin wrote: 05 May 2021 18:15 BTW, could you check if this is ticked: Configuration | General | Refresh, Icons, History | Icons | Show icon overlays
This can really slow down startup if your tree is showing many folders.
It is not ticked, but I have a different "icon situation" that may be relevant...
Check out this forum post where I thought it would be clever to use the icon from an .exe file, and apply it to the folder of said application.
https://www.donationcoder.com/forum/ind ... ;topicseen
So most of those child folders in "PortableApps" have a custom icon. Still, they're been that way for a month... It seems like xy would've cached the icon images(?) If that's what the problem is, then it has nothing to do with my scripted columns.

I'll see about reverting all of those folders to their default images.
highend wrote: 05 May 2021 16:41Let the script write a log file by spitting out <cc_item_ds> with a timestamp affix.
Maybe that helps to see if the script failed at some point or if it can be ruled out...
And thanks for the procedure on this, Highend, I will see about this as well.
ste(phen|ve) kunkel

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

Re: XY keeps preloading folder at startup....

Post by admin »

Interesting. I think I could apply the same strategy here as I did yesterday for icon overlays: First load the tree with the fast default icons, then show the app, then go for the slow icons. It's good when the app pops up fast, right?

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

Re: XY keeps preloading folder at startup....

Post by admin »

PS: If the next beta (v21.70.0116) is still slow-loading please show the load times using text <get loadtimes>;.

kunkel321
Posts: 645
Joined: 10 Jun 2012 03:45
Location: Near Seattle

Re: XY keeps preloading folder at startup....

Post by kunkel321 »

Hi again all. I'm not sure how to set up a logging thing...

I'm guessing that this will be a text file that gets put in the xypath folder with XYplorer.ini. Where is the setting to instruct xy to create the log file though?

Also, am I creating something that will capture when the above-mentioned unknown script crashes next time? Highend mentioned <cc_item_ds> with a timestamp. But then Don mentioned text <get loadtimes>;. Those would be used for different things though--yes?
ste(phen|ve) kunkel

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

Re: XY keeps preloading folder at startup....

Post by admin »

Just run text <get loadtimes>; at any time through XYplorer's address bar. It will show you the startup stats.

Post Reply