GNU bug report logs - #77775
30.1; Proced performance

Previous Next

Package: emacs;

Reported by: Rahguzar <rahguzar <at> mailbox.org>

Date: Sun, 13 Apr 2025 07:28:04 UTC

Severity: normal

Found in version 30.1

Full log


View this message in rfc822 format

From: Roland Winkler <winkler <at> gnu.org>
To: Azeem Hasan <rahguzar <at> mailbox.org>
Cc: Eli Zaretskii <eliz <at> gnu.org>, Laurence Warne <laurencewarne <at> gmail.com>, 77775 <at> debbugs.gnu.org
Subject: bug#77775: 30.1; Proced performance
Date: Mon, 14 Apr 2025 05:38:26 -0500
On Mon, Apr 14 2025, Azeem Hasan wrote:
> Looking at how the process-alist passed to `proced-format' is
> constructed, I think a better change that preserves current behavior
> would be:
>
> -  (let ((standard-attributes
> -         (car (proced-process-attributes (list-system-processes))))
> +  (let ((standard-attributes (car process-alist))

That's my point:

The code used to be

  (let ((standard-attributes
         (car (proced-process-attributes (list (emacs-pid)))))

and that's what the comment refers to that is still present in the code.
Somehow, this got replaced by

 (let ((standard-attributes
        (car (proced-process-attributes (list-system-processes))))

and I want to find out what this change was supposed to accomplish.

Your patch

  (let ((standard-attributes (car process-alist))

uses somewhat randomly the first process of process-alist.




This bug report was last modified 12 days ago.

Previous Next


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