[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug-diffutils] bug#72723: diff -d can be very slow
From: |
Vincent Lefevre |
Subject: |
[bug-diffutils] bug#72723: diff -d can be very slow |
Date: |
Tue, 20 Aug 2024 01:55:22 +0200 |
User-agent: |
Mutt/2.2.13+77 (9dc98409) vl-169878 (2024-06-20) |
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, even though the original .diff file
is rather simple.
I've attached a slow-diff.tar.xz archive with:
* diff1L52tn0 and diff2U4TVho (files built be GNU Emacs).
* file.diff the original .diff file.
When running "/usr/bin/emacs -Q file.diff.xz", I could see what
takes the whole time with ps or top. Here I could see
diff -ad /tmp/diff1L52tn0 /tmp/diff2U4TVho
As this is slow, I could obtain these files.
On my recent machine, "diff -ad diff1L52tn0 diff2U4TVho" takes
27 seconds.
--
Vincent Lefèvre <vincent@vinc17.net> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)
slow-diff.tar.xz
Description: Binary data
- [bug-diffutils] bug#72723: diff -d can be very slow,
Vincent Lefevre <=