Re: diff memory usage

Lennart Borgman <[email protected]>
Newsgroups gmane.comp.windows.gnu.user
Message-ID <[email protected]>
Brian Sammon wrote:
> On Thu, 14 Feb 2008 01:53:28 +0100
> Lennart Borgman <[email protected]> wrote:
> 
>> Brian Sammon wrote:
>>> I need to compare two 70 MB files to see if they're different.  If
>>  I use diff (Windows 2000, either of two different diff versions), the
>>  memory usage balloons up to around 140MB, as if it was loading both
>>  files into memory.  This can be a problem on the computer I want to
>>  use it on, as there's not always 140MB of free memory available.
>>> Does anyone have any suggestions for how to deal with this?
>>> Suggestions like "Try this command-line option" or "Use this other
>>  program" [preferably open-source] or "read the following website"
>>  are welcome.
>>> Suggestions like "get more memory" are, well...
>>
>> If you only want to know if they are different you can use
>>
>>   diff -q
>>   diff --brief
>>
>> Does that also need that much memory?
> 
> That doesn't help (the memory usage is pretty much the same)
> Thanks for the suggestion, though.  I hadn't thought of that.


Is not that very strange? Maybe you should file a bug report on that?

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.