Subject: Re: bug#77775: 30.1; Proced performance

From: Rahguzar <[email-masked]>
Date: Mon, 14 Apr 2025 15:55:36 +0500

Hi Roland,

Roland Winkler <[email-masked]> writes:

> 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.

This was done in the commit
e48ac2e2040 * Handle remote system processes
in order to support remote processes.

> Your patch
>
>   (let ((standard-attributes (car process-alist))
>
> uses somewhat randomly the first process of process-alist.

which is the current behavior: the process that gets used is the one
last in `list-system-processes' and that process is the first one in
`process-alist'.

Rahguzar