[WISH] differences for big files

Here you can propose new features, make suggestions etc.

Moderators: Hacker, petermad, Stefan2, white

Post Reply
Dark-Star
Junior Member
Junior Member
Posts: 76
Joined: 2004-12-01, 14:15 UTC
Location: Reutlingen, GERMANY

[WISH] differences for big files

Post by *Dark-Star »

(I hope it's okay to bring that one up again... I found a similar thread on the forum but it was quite some time ago...)

I would really like a smarter "compare by content" function, which is able to show the real differences for big files. The problem is that I often have to handle those large files while developing, and from time to time I need to know, for example, which bits/bytes changed from one file to another. A simple "the files differ" is not enough in that case.

would it be possible to implement something like that? It would perfectly okay if it would only work in binary mode but not in text mode.
Then you could, for example, read a 64k block around the differing file position and display that. I imagine that for text mode comparisons, you'd have to start parsing backwards/forwards for linefeeds, which probably isn't very straightforward to do :)
User avatar
sqa_wizard
Power Member
Power Member
Posts: 3893
Joined: 2003-02-06, 11:41 UTC
Location: Germany

Post by *sqa_wizard »

for example, which bits/bytes changed from one file to another
That is exactly what the internal compare tool currently does !
A simple "the files differ" is not enough in that case.
It looks like you are using the new "External Compare Tool" feature ...

To override this mode temporarily, you have to use the command "cm_IntCompareFilesByContent" (as button or shortcut) which shows the binary differences.
#5767 Personal license
User avatar
Hacker
Moderator
Moderator
Posts: 13141
Joined: 2003-02-06, 14:56 UTC
Location: Bratislava, Slovakia

Post by *Hacker »

sqa_wizard,
That is exactly what the internal compare tool currently does !
Not if the files are too large.

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
petermad
Power Member
Power Member
Posts: 16001
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

2Dark-Star
Then you could, for example, read a 64k block around the differing file position and display that
But what if there are hundreds or thousands of different file positions scattered all over the files?
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
Dark-Star
Junior Member
Junior Member
Posts: 76
Joined: 2004-12-01, 14:15 UTC
Location: Reutlingen, GERMANY

Post by *Dark-Star »

Hacker wrote:sqa_wizard,
That is exactly what the internal compare tool currently does !
Not if the files are too large.
Exactly. It works fine for small files, but not for large ones. I haven't (yet) found out what the exact size is where it stops working, though.
petermad wrote: But what if there are hundreds or thousands of different file positions scattered all over the files?
Note that this already works for small files (for example, try comparing two entirely different 1meg files). So having "thousands of differences" in two files is definitely not a problem.
Post Reply