Solved [TC 8.0 x64] Slower loading in CbC tool than 32 bit version
Moderators: Hacker, petermad, Stefan2, white
Solved [TC 8.0 x64] Slower loading in CbC tool than 32 bit version
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).
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.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
- ghisler(Author)
- Site Admin
- Posts: 50529
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
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
https://www.ghisler.com
Hmm, 300% slower - that is a big difference to accept for running 64bit 

License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
- ghisler(Author)
- Site Admin
- Posts: 50529
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
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
https://www.ghisler.com
- ghisler(Author)
- Site Admin
- Posts: 50529
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
If you can wait another year until I have ported TC to it? I can't.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
History.txt:
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.15.11.11 Fixed: Compare by content: Increase load speed (slowdown caused by try..except block) (64)
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
- ghisler(Author)
- Site Admin
- Posts: 50529
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact: