diff options
author | Jim Warner <james.warner@comcast.net> | 2023-05-03 00:00:00 -0500 |
---|---|---|
committer | Craig Small <csmall@dropbear.xyz> | 2023-05-07 09:43:44 +1000 |
commit | a4e9a8508c7a7ac9553e7e7893595611a1237e8b (patch) | |
tree | e4cf3653b95463579ee1b9a3df76f40f6730505d /po-man | |
parent | 1c9e65d785b8b8d82256f946d4feb2a1070ac02f (diff) | |
download | procps-ng-a4e9a8508c7a7ac9553e7e7893595611a1237e8b.tar.gz |
top: lessen overhead when field is not being displayed
This program employs fixed size stacks which currently
total 85 result structures. When a field was not being
shown, those unused result structures were initialized
as 'PIDS_extra' items. As a result, that library would
then reset the results to zero with every interaction.
For any of those result structs holding values created
by top this was appropriate. But for most, it was not.
So this patch will reduce that use of PIDS_extra while
vastly increasing use of the less expensive PIDS_noop.
Signed-off-by: Jim Warner <james.warner@comcast.net>
Diffstat (limited to 'po-man')
0 files changed, 0 insertions, 0 deletions