GNU bug report logs - #21665
Use of mmap for large files

Previous Next

Package: diffutils;

Reported by: Maurice van der Pot <griffon26 <at> kfk4ever.com>

Date: Sun, 11 Oct 2015 17:09:01 UTC

Severity: normal

Full log


View this message in rfc822 format

From: Jim Meyering <jim <at> meyering.net>
To: Maurice van der Pot <griffon26 <at> kfk4ever.com>
Cc: 21665 <at> debbugs.gnu.org
Subject: bug#21665: [bug-diffutils] bug#21665: Use of mmap for large files
Date: Sun, 1 May 2016 18:27:03 -0700
tags 21665 notabug
close 21665
done

On Sun, Oct 11, 2015 at 6:42 AM, Maurice van der Pot
<griffon26 <at> kfk4ever.com> wrote:
> I am working on an application suitable for visually merging large files.
> This application delegates determination of differences to GNU diff.
>
> Unfortunately I have found that diff reads the entire input files into
> memory, leading to "/usr/bin/diff: memory exhausted" messages on the
> types of files I'd like to support.
>
> Would you be open to patches that enable diffing large files by using
> mmap?

As Paul responded in http://bugs.gnu.org/21665#8, using mmap seems
unlikely to help much, but if you write the patch and demonstrate that
it does make a difference, we'll be very interested, and I will
happily reopen the issue.

For now, I'm marking this as notabug and closing it.




This bug report was last modified 9 years and 45 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.