TC 9 slow start

English support forum

Moderators: white, Hacker, petermad, Stefan2

User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

I can really only recommend "process monitor" then.

It's not that hard to use! In the dialog "Process monitor filter" that pops up, choose the following:

"Process name" - "contains"
Then type: totalcmd

and choose "Include" and click "OK".

Now start Total Commander. Once it has fully loaded, go back to "Process monitor" and click on the magnifying glass icon to stop the logging.

Then choose "File" - "Save". Use the standard settings. You may need to choose a different location for the file. It gives you a pml file. Please pack this with Total Commander (Alt+F5) and send it to me by e-mail (support at ghisler dot com).
Author of Total Commander
https://www.ghisler.com
serjayes
Junior Member
Junior Member
Posts: 56
Joined: 2004-01-19, 16:53 UTC

Post by *serjayes »

Christian, I've sent you an e-mail (in two parts) to the support ghisler punkt com titled

"The solution to the slow reading of the directories with a lot of files"

You can change a few lines on the critical points in your code and enumerate the files much faster (in milliseconds instead of seconds!) at least on every Windows 7 and later.

Both the directory listings and file searches could be immensely faster.

Edit: I've done more tests, it's not always observably faster, but only in the directories for which the OS stays "confused" by default like for c:\Windows\servicing\Packages However for that given directory the difference is 15 seconds on my machine by default vs 25 milliseconds with the speedup. Sorry for making too general claims initially. Tip: the difference can be observed with cmd.exe, "dir" is much faster, "dir /x" is as slow as the current Total Commander, when performed in c:\Windows\servicing\Packages.
(user licence #64081)
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Hmm, this directory opens in less than a second here, although it has 10553 files.

Maybe your folder is fragmented a lot?
Author of Total Commander
https://www.ghisler.com
serjayes
Junior Member
Junior Member
Posts: 56
Joined: 2004-01-19, 16:53 UTC

Post by *serjayes »

I've sent you an output of the dir /x of my directory via e-mail.
(user licence #64081)
AndrewCreator
Member
Member
Posts: 122
Joined: 2011-10-10, 23:25 UTC

Post by *AndrewCreator »

In my case slow startup is caused by a mapped network drive which is a bit slow.

TC 9.0a tries to read desktop.ini and autorun.inf from mapped drive causing startup delay.

TC 8.52a is not affected.

I have tried
DirTabIcons=0
IconsInDriveList=1

TC 9.0a still reads desktop.ini and autorun.inf.

Christian can this be fixed?
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Try to disable the option "Show drive icons from Explorer" in Configuration - Options - Icons.
Author of Total Commander
https://www.ghisler.com
AndrewCreator
Member
Member
Posts: 122
Joined: 2011-10-10, 23:25 UTC

Post by *AndrewCreator »

The same result. 9.0a reads desktop.ini and autorun.inf and 8.52a does not.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

That doesn't make any sense to me.
1. Do you see the older drive icons?
2. Do you use drive button bar, drive dropdown combobox, or both?
Author of Total Commander
https://www.ghisler.com
AndrewCreator
Member
Member
Posts: 122
Joined: 2011-10-10, 23:25 UTC

Post by *AndrewCreator »

2ghisler(Author)
1. If I disable the the option "Show drive icons from Explorer", I see old drives like in 8.52a, but desktop.ini is being read.
2. Only combobox, button bar is disabled in layout.
AndrewCreator
Member
Member
Posts: 122
Joined: 2011-10-10, 23:25 UTC

Post by *AndrewCreator »

2ghisler(Author), any ideas on how to fix?
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

I haven't found our yet why desktop.ini would be read - maybe icon on tabs? You can try to disable them too via Configuration - Options - Folder tabs.
Author of Total Commander
https://www.ghisler.com
AndrewCreator
Member
Member
Posts: 122
Joined: 2011-10-10, 23:25 UTC

Post by *AndrewCreator »

I have tried

DirTabIcons=0
FirstTimeIconLib=0
IconOverlays=0
IconsInDriveList=0
IconsOnNet=0
LoadDriveIconsInBackground=0
DefaultLib=wcmicon2

TC 9.0a still reads desktop.ini and autorun.inf.

This is quite annoying when network drive with high latency is connected.
User avatar
petermad
Power Member
Power Member
Posts: 14739
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

2AndrewCreator
Try:
IconsSpecialFolders=2
or
IconsSpecialFolders=0
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50b4 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
AndrewCreator
Member
Member
Posts: 122
Joined: 2011-10-10, 23:25 UTC

Post by *AndrewCreator »

2petermad
TC still tries to read file:

Code: Select all

22:22:52,3017454  svchost.exe      1144  FileSystemControl  \\;X:000000000020910a\server\Share                                SUCCESS
22:22:52,3018062  svchost.exe      1144  FileSystemControl  \\;X:000000000020910a\server\Share                                SUCCESS
22:23:13,3017916  totalcmd64.exe  10044  CreateFile         \\;LanmanRedirector\;X:000000000020910a\server\Share\Desktop.ini  BAD NETWORK PATH
22:23:13,3038656  totalcmd64.exe  10044  CreateFile         \\;LanmanRedirector\;X:000000000020910a\server\Share\Desktop.ini  BAD NETWORK PATH
22:23:13,3067207  totalcmd64.exe  10044  CreateFile         \\;LanmanRedirector\;X:000000000020910a\server\Share\AutoRun.inf  BAD NETWORK PATH
Could you try to reproduce?

Code: Select all

>net use X: \\server\Share
The command completed successfully.
Then block share on server with firewall and launch TC.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Then block share on server with firewall and launch TC.
How do I do this?
Author of Total Commander
https://www.ghisler.com
Post Reply