summaryrefslogtreecommitdiff
path: root/src/top/top.h
diff options
context:
space:
mode:
authorJim Warner <james.warner@comcast.net>2023-05-03 00:00:00 -0500
committerCraig Small <csmall@dropbear.xyz>2023-05-07 09:43:44 +1000
commita4e9a8508c7a7ac9553e7e7893595611a1237e8b (patch)
treee4cf3653b95463579ee1b9a3df76f40f6730505d /src/top/top.h
parent1c9e65d785b8b8d82256f946d4feb2a1070ac02f (diff)
downloadprocps-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 'src/top/top.h')
0 files changed, 0 insertions, 0 deletions