Solved [TC 8.0 x64] Slower loading in CbC tool than 32 bit version

Bug reports will be moved here when the described bug has been fixed

Moderators: white, Hacker, petermad, Stefan2

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

Solved [TC 8.0 x64] Slower loading in CbC tool than 32 bit version

Post by *petermad »

Testing the Compare by Content tool with big files (187 Mb big *.reg files) I noticed this that the 64bit version is about 3 times slower than the 32bit version loading the files.

It takes 29 seconds to load the two files in the 64bit version.
It takes 10 seconds to load the same two files in the 32bit version.

In both tests the files are already in Windows cache (I test 2 times and measure the second loading).
Last edited by petermad on 2021-05-30, 16:58 UTC, edited 1 time in total.
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.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48093
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

The source code for comparing is exactly the same. It's either because all pointers are now 64-bit, or because Lazarus is optimizing worse than Delphi 2.
Author of Total Commander
https://www.ghisler.com
User avatar
petermad
Power Member
Power Member
Posts: 14811
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

Hmm, 300% slower - that is a big difference to accept for running 64bit :(
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.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48093
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

I only see a factor of 2 here, but this may depend on the compared files. Currently I don't see any way to speed it up. :(
Author of Total Commander
https://www.ghisler.com
User avatar
Lefteous
Power Member
Power Member
Posts: 9535
Joined: 2003-02-09, 01:18 UTC
Location: Germany
Contact:

Post by *Lefteous »

2ghisler(Author)
Use Delphi XE2.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48093
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

If you can wait another year until I have ported TC to it? I can't.
Author of Total Commander
https://www.ghisler.com
User avatar
petermad
Power Member
Power Member
Posts: 14811
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

History.txt:
15.11.11 Fixed: Compare by content: Increase load speed (slowdown caused by try..except block) (64)
This has helped a lot. Loading the two files mentioned in the first post now only takes 15 seconds in the x64 version in stead of 29 seconds. So it is not so far from the 10 seconds the 32bit version uses.
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.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48093
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Thanks!
Author of Total Commander
https://www.ghisler.com
Post Reply