Compare by Content: Not Enough Memory
Moderators: Hacker, petermad, Stefan2, white
Compare by Content: Not Enough Memory
this may have been mentioned before but compare large files (> 1GB) seem to give a "not enough memory" error. I suppose TC does the comparison before displaying the files by allocating enough buffers to hold the files. There is got to be a better way of doing it than this way. Take for example VBinDiff which handles up to 4GB file sizes. It doesn't not do the comparison before displaying the files but rather in a more dynamic way.
Image: http://s21.postimg.org/nisv860zb/Clipboard01.jpg
Image: http://s21.postimg.org/nisv860zb/Clipboard01.jpg
As you said "this has been mentioned before"
So use the search feature and don't start the same discussion again.
You can also configure an external compare tool in TC if you like.
So use the search feature and don't start the same discussion again.
You can also configure an external compare tool in TC if you like.
Last edited by Horst.Epp on 2014-04-30, 13:43 UTC, edited 1 time in total.
already using VBinDiff. Nevertheless, TC 32-bit should handle up to 4GB file sizes. Switching to 64-bit will work but that's not the solution when working on 32-bit systems.Horst.Epp wrote:As you said "this has been mentioned before"
So use the search feature and don't start the same discussion again.
You can also configure an external compare tool in TC if you like.
- ghisler(Author)
- Site Admin
- Posts: 50873
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
TC uses file mapping to map the files into memory. You cannot expect to compare up to 4GB files this way because the entire address space is 4GB, and only 2GB is available to programs. Furthermore, that address space is also used for the program, dlls, and data, and may already be fragmented. I considered to map only parts of the file into memory, but this would make the compare function a lot more complex and much slower.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
- ghisler(Author)
- Site Admin
- Posts: 50873
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Adding a user-defined file mapping limit should be easy, I will try it.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com