Feature request: compare files for big files

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
User avatar
MichelPy
Junior Member
Junior Member
Posts: 52
Joined: 2004-01-14, 21:07 UTC
Location: Switzerland
Contact:

Feature request: compare files for big files

Post by *MichelPy »

I was a little bit disappointed today as I wanted to compare two 4GB files with TC 6.03a.:cry:

I only got the following message:
COMPARE - Not enough memory, search aborted.
The two files are DIFFERENT!

Because I cannot afford to buy a machine with 8GB of RAM, I would be very pleased if TC could in the future compare big files without asking to add more memory.

Thanks in advance.
Michel
User avatar
Sheepdog
Power Member
Power Member
Posts: 5150
Joined: 2003-12-18, 21:44 UTC
Location: Berlin, Germany
Contact:

Re: Feature request: compare files for big files

Post by *Sheepdog »

MichelPy wrote:Because I cannot afford to buy a machine with 8GB of RAM, I would be very pleased if TC could in the future compare big files without asking to add more memory.
I don't think that you need more RAM. I guess the error message is misleading and you will probably need more space at the drive your %temp% folder is located.

sheepdog
"A common mistake that people make when trying to design something
completely foolproof is to underestimate the ingenuity of complete fools."
Douglas Adams
User avatar
Hacker
Moderator
Moderator
Posts: 13142
Joined: 2003-02-06, 14:56 UTC
Location: Bratislava, Slovakia

Post by *Hacker »

Whoo, Sheepdog forgot something... this is a sad day for the TC community... ;)
See please http://www.ghisler.ch/board/viewtopic.php?t=3126

HTH
Roman
Mal angenommen, du drückst Strg+F, wählst die FTP-Verbindung (mit gespeichertem Passwort), klickst aber nicht auf Verbinden, sondern fällst tot um.
User avatar
djk
Power Member
Power Member
Posts: 1651
Joined: 2003-03-17, 11:33 UTC
Location: Poland
Contact:

Post by *djk »

2Hacker
Any translation (at least summary) if there is an answer for this problem, please. ;-)
DJK
Totally addicted to Total Commander
totalcmd.pl
en.totalcmd.pl
User avatar
Clo
Moderator
Moderator
Posts: 5731
Joined: 2003-12-02, 19:01 UTC
Location: Bordeaux, France
Contact:

Post by *Clo »

2Hacker
:( What about the same in English (at least...) An abstract should be welcome, I'm not sure to have undestood 20% of these posts... ;)
K R
Clo
#31505 Traducteur Français de TC French translator Aide en Français Tutoriels Français English Tutorials
User avatar
Sheepdog
Power Member
Power Member
Posts: 5150
Joined: 2003-12-18, 21:44 UTC
Location: Berlin, Germany
Contact:

Post by *Sheepdog »

Not the space on the %temp% drive but the swap-file size must be big enough to make a compare by content. For this both whole files are loaded into (virtual) Memory. But this will take a lot of time.


If you only want to know if the files are equal you can use the 'synchronise dir' feature -that shows if files equal or not. Icfu proposed for this case a CRC-chesum test of both files.


sheepdog
"A common mistake that people make when trying to design something
completely foolproof is to underestimate the ingenuity of complete fools."
Douglas Adams
User avatar
Hacker
Moderator
Moderator
Posts: 13142
Joined: 2003-02-06, 14:56 UTC
Location: Bratislava, Slovakia

Post by *Hacker »

Sorry, didn't realize the Thread is in another language.

The last four posts:

icfu:
"You need enough RAM / swap space to accomodate the two files. The free HDD space is irrelevant.
Unfortunately Compare by content loads both files into RAM instead of comparing only small parts of them (the way Lister works).
@ghisler: Maybe this could be changed?"

ghisler(Author):
"Simply use Synchronize dirs instead of Compare by content. Sync dirs only shows if the files are equal/unequal, while Comapre by contents tries to load both files into memory when they're different, to show the differences."

icfu:
"Wouldn't it be possible to show the differences in small, 64KB parts only, like in Lister?
When comparing byte by byte you don't need to load both files into memory completely, just the needed offsets (parts).

They way it works now, Compare by contents is totally unusable for large files because of the memory limitation and the time it takes to load both files into memory, and that's a pity."

ghisler(Author):
"Should be theoretically possible, however, it would require larger changes in the program. Let's see if it's doable."

HTH
Roman
Mal angenommen, du drückst Strg+F, wählst die FTP-Verbindung (mit gespeichertem Passwort), klickst aber nicht auf Verbinden, sondern fällst tot um.
User avatar
djk
Power Member
Power Member
Posts: 1651
Joined: 2003-03-17, 11:33 UTC
Location: Poland
Contact:

Post by *djk »

2Hacker
Thanks, my German books are still waiting for me :oops:[face=arial][/face][face=comicsansms][/face][face=courier][/face]
DJK
Totally addicted to Total Commander
totalcmd.pl
en.totalcmd.pl
User avatar
Clo
Moderator
Moderator
Posts: 5731
Joined: 2003-12-02, 19:01 UTC
Location: Bordeaux, France
Contact:

Post by *Clo »

2Hacker
:D Much better like this…

Thanks,
Claude
Clo
#31505 Traducteur Français de TC French translator Aide en Français Tutoriels Français English Tutorials
Post Reply