coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] pinky,users,who: Optimize read_utmp invocation


From: Bruno Haible
Subject: [PATCH] pinky,users,who: Optimize read_utmp invocation
Date: Thu, 10 Aug 2023 14:07:19 +0200

In the past, coreutils did not need to pass the option READ_UTMP_USER_PROCESS
to read_utmp(), since it was testing IS_USER_PROCESS of each entry anyway.
The only effect would have been to save some amount of memory allocation.

But now, it also saves from making extra system calls to determine the
boot time. Thus it is worth using now.

Find attached a patch.

Bruno

Attachment: 0001-pinky-users-who-Optimize-read_utmp-invocation.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]