]> granicus.if.org Git - procps-ng/commit
top: lessen overhead when 'bottom window' isn't active
authorJim Warner <james.warner@comcast.net>
Wed, 11 Jan 2023 06:00:00 +0000 (00:00 -0600)
committerCraig Small <csmall@dropbear.xyz>
Sun, 15 Jan 2023 04:02:39 +0000 (15:02 +1100)
commit28f44729dab9b292a9d5499f8cad6a12c1eb4ae5
treebe06a460257737b0ff986cbdcbb95047111ec65c
parent548c6a05baaf514d04d2c7000751c6a5e27a1182
top: lessen overhead when 'bottom window' isn't active

In the commits referenced below special code was added
to make the bottom window sticky and fix the bug after
'Cap_nl_clreos' was traded for the 'Cap_clr_eol' loop.

However, there's always major overhead associated with
interacting with a terminal. So we'll only abandon the
single 'Cap_nl_clreos' putp in favor of repeated calls
with 'Cap_clr_eol' when a bottom window isn't present.

Reference(s):
. May, 2022 - bottom window batch bug fix
commit 793f3e85aeb41788e359c2f6f387812c328ac097
. May, 2022 - bottom window made sticky
commit 0f2a755b0b2754fca79545984e25ec52f4ae4444

Signed-off-by: Jim Warner <james.warner@comcast.net>
src/top/top.c