Package: diffutils Version: 1:3.10-1 Severity: important Affects: emacs-gtk Forwarded: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=72723
I've just reported the following bug upstream: ------------------------------------------------------------------ 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. ------------------------------------------------------------------ Note that Emacs cannot even be interrupted with C-g (this may be an additional bug in Emacs). -- System Information: Debian Release: trixie/sid APT prefers unstable-debug APT policy: (500, 'unstable-debug'), (500, 'stable-updates'), (500, 'stable-security'), (500, 'stable-debug'), (500, 'proposed-updates-debug'), (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 'experimental') Architecture: amd64 (x86_64) Kernel: Linux 6.11.0-rc2+ (SMP w/16 CPU threads; PREEMPT) Locale: LANG=C.UTF-8, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set Shell: /bin/sh linked to /usr/bin/dash Init: systemd (via /run/systemd/system) LSM: AppArmor: enabled Versions of packages diffutils depends on: ii libc6 2.39-7 diffutils recommends no packages. Versions of packages diffutils suggests: ii diffutils-doc 1:3.10-1 ii wdiff 1.2.2-6 -- no debconf information -- Vincent Lefèvre <vinc...@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)