-Compare by content: files not closed?
Moderators: Hacker, petermad, Stefan2, white
-
- Junior Member
- Posts: 5
- Joined: 2010-02-25, 06:32 UTC
-Compare by content: files not closed?
After activating "Compare by content" window, it is not possible to modify compared files (probably still open). Is this done on purpose? Previous versions behaviour was different - after edit (notepad) and regaining focus by "Compare contents" window, there was a message: "Recompare?"
This depends on file sizes.
Files < 1MB are buffered in the memory and closed, so you can edit them.
Files >= 1MB use system feature called "mapping view of file in the memory", so files are locked for writing until comparing finishes. This also has another side effect - you can't compare files larger than the available address space (4GB in 32-bit Windows).
This may change in the future, so you would be able to edit even >= 1MB files during comparison, and you would be able to compare even very large files - a bit more info here:
http://www.ghisler.ch/board/viewtopic.php?t=38786
Regards
Files < 1MB are buffered in the memory and closed, so you can edit them.
Files >= 1MB use system feature called "mapping view of file in the memory", so files are locked for writing until comparing finishes. This also has another side effect - you can't compare files larger than the available address space (4GB in 32-bit Windows).
This may change in the future, so you would be able to edit even >= 1MB files during comparison, and you would be able to compare even very large files - a bit more info here:
http://www.ghisler.ch/board/viewtopic.php?t=38786
Regards
It still works like that for me - I havent tried with txt files larger tann 1Mb as described by MarcinWafter edit (notepad) and regaining focus by "Compare contents" window, there was a message: "Recompare?"
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
-
- Junior Member
- Posts: 5
- Joined: 2010-02-25, 06:32 UTC
It has changed, but back in the beta phase of Version 8.0 (beta 19), probably due to my bug report.
The problem is that the files are mapped for size > 1024k and you must not able to edit the file it when this is done,
(especially lowering the file size) because it causes data corruption.
The discussion already linked shows that this *may* change in one of the next major versions, i.e. dropping the file mapping.
But until that I think it would be best to have a configurable memory limit, e.g. for up to 20 MiB or so, in the INI file.
I like TC's CBC tool and prefer it over many other similar ones,
but the 1 MiB limit really is not appropriate anymore on modern systems with multiple Gigabytes of main memory.
I have tons of configuration and log files that easily go over one Megabyte, probably just like many other people too, so...
The problem is that the files are mapped for size > 1024k and you must not able to edit the file it when this is done,
(especially lowering the file size) because it causes data corruption.
The discussion already linked shows that this *may* change in one of the next major versions, i.e. dropping the file mapping.
But until that I think it would be best to have a configurable memory limit, e.g. for up to 20 MiB or so, in the INI file.
I like TC's CBC tool and prefer it over many other similar ones,
but the 1 MiB limit really is not appropriate anymore on modern systems with multiple Gigabytes of main memory.
I have tons of configuration and log files that easily go over one Megabyte, probably just like many other people too, so...