?[TC 8.50x32] Local directory reading is too slow!

The behaviour described in the bug report is either by design, or would be far too complex/time-consuming to be changed

Moderators: white, Hacker, petermad, Stefan2

User avatar
petermad
Power Member
Power Member
Posts: 14739
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

System: i7; Win8.1 64bit; SSD 256Gb
What's i7 ?
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
User avatar
HolgerK
Power Member
Power Member
Posts: 5406
Joined: 2006-01-26, 22:15 UTC
Location: Europe, Aachen

Post by *HolgerK »

User avatar
petermad
Power Member
Power Member
Posts: 14739
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

2HolgerK

Thanks :-)
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
betamaster
Junior Member
Junior Member
Posts: 13
Joined: 2014-02-27, 07:13 UTC

Post by *betamaster »

ghisler(Author) wrote:Hmm, really strange that this is slow. Are you in a Windows domain? Or a remote desktop environment? I just wonder why this operation is so slow for a few people, but not for most others...
Use Remotely,also use Virtual Windows in Linux - These two were having lags morely..
Windows enviroment directly - lesser lags at times

After editing - No lags :)

wincmd.ini
[Configuration]
TestIfSharedDir=0
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

2Hemlikevew
I need more info - your case seems to be different from the other posts in this thread. Please let me know when you find out someting with Process Monitor.
Author of Total Commander
https://www.ghisler.com
Hemlikevew
Junior Member
Junior Member
Posts: 10
Joined: 2014-03-13, 19:04 UTC

Post by *Hemlikevew »

More info after a number of tests:

Lags seems due to Windows Defender start scanning "open with" associated exe for files in dir as per Process Monitor log.

First time on dir open the TC receiving DefaultIcon path then accessing associated exe and here MsMpEng.exe jumps in scanning associated exe and lag therefore.

The different behaviour noted for TCx32 and TCx64 (dir with 8 subdirs; 1 pdf; 4 jpg):

TCx32: Open dir in TCx32 and subdirs to appear immidiately then PDF file to appear after scan then 4 JPG files to appear altogether.
TCx64: Open dir in TCx64 and its content to appear altogether after scan.

Same behaviour noted on 2 different PC: desktop i7; Win 8.1x64; SSD (initial problem here) and notebook i7; Win 8.1x64; SSD (copied dir with 1 pdf and 4 jpg there).

Files in dir: 1 pdf 160kb; 1st jpg 409kb; 2nd jpg 1mb; 3rd jpg 1mb; 4th jpg 202kb so nothing special.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Indeed associations like pdf (no per file icon) are always loaded in ther foreground - it has been like this for many years. I don't see why this should suddenly be slower in TC 8.5 than TC 8.0...
Author of Total Commander
https://www.ghisler.com
Hemlikevew
Junior Member
Junior Member
Posts: 10
Joined: 2014-03-13, 19:04 UTC

Post by *Hemlikevew »

ghisler(Author) wrote:Indeed associations like pdf (no per file icon) are always loaded in ther foreground - it has been like this for many years. I don't see why this should suddenly be slower in TC 8.5 than TC 8.0...
Indeed not related only to 8.5, seems like coincidence. Sorry, not tested problem from all sides at beginning. Problem is solved for me. Many thanks.
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 will probably move that to a background thread too in the future, but it could mean more blank icons for many files until the icons are loaded...
Author of Total Commander
https://www.ghisler.com
Hemlikevew
Junior Member
Junior Member
Posts: 10
Joined: 2014-03-13, 19:04 UTC

Post by *Hemlikevew »

ghisler(Author) wrote:I will probably move that to a background thread too in the future, but it could mean more blank icons for many files until the icons are loaded...
IMHO it seems better to await for icons than await for dir content keeping in mind potential solution selecting only standard icons to show (or even no icons). Not sure how other antiviruses act, but Windows Defender being included as common Windows feature cause noticeable delay.
User avatar
petermad
Power Member
Power Member
Posts: 14739
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

IMHO it seems better to await for icons than await for dir content
I agree.
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
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Making that change will be a LOT of work, so I cannot say yet when I will find the time...
Author of Total Commander
https://www.ghisler.com
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 have now partially implemented this: Icons from system associations will now be loaded in a separate background thread (not the thread used for EXE icons, thumbnails etc, that was too slow). Icons defined in internal associations are not yet loaded in a background thread, this has been postponed to a later beta.

Furthermore, I'm now using a different method to check whether folders are shared or not (this only applies when overlay icons are off): I'm now building a list of all shares with NetShareEnum, and then check this list instead of calling a separate Windows function for each folder. This has the downside that shares will not be found when using 8.3 names, but I think that this is an acceptable loss.
Author of Total Commander
https://www.ghisler.com
Hemlikevew
Junior Member
Junior Member
Posts: 10
Joined: 2014-03-13, 19:04 UTC

Post by *Hemlikevew »

Tested beta 4 and dir content appears immidiately all the time. On other hand the most of icons are "missing" after nearly each TCx64 close-open until some panels related activity (many different scenarios observed) despite antivirus (e.g. Windows Defender) enabled or turned off. The only way to reveal the icon for sure is to place cursor on the file for current implementation.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

This is a known bug in the 64-bit version which will be fixed in beta 5. You may try the 32-bit version, there is should work fine with icon sizes smaller than 32x32 (up to 31x31).
Author of Total Commander
https://www.ghisler.com
Post Reply