GNU bug report logs - #72723
diff -d can be very slow

Previous Next

Package: diffutils;

Reported by: Vincent Lefevre <vincent <at> vinc17.net>

Date: Mon, 19 Aug 2024 23:57:01 UTC

Severity: normal

Full log


View this message in rfc822 format

From: Paul Eggert <eggert <at> cs.ucla.edu>
To: Vincent Lefevre <vincent <at> vinc17.net>, 72723 <at> debbugs.gnu.org
Subject: bug#72723: [bug-diffutils] bug#72723: diff -d can be very slow
Date: Mon, 19 Aug 2024 17:17:27 -0700
On 2024-08-19 16:55, Vincent Lefevre wrote:
> When opening a .diff file, GNU Emacs runs "diff -ad" on 2 files
> it has built (I suppose that the reason is to get a word diff),
> and this can be very slow

That's inherent to the algorithm, no? I don't know of any faster 
algorithm, if you really want minimal output. If you know of one, please 
let us know.

A simple workaround would be for GNU Emacs to not use the -d (--minimal) 
option.




This bug report was last modified 298 days ago.

Previous Next


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