top: get rid of on-stack variable buffers, use permanent one.
authorDenis Vlasenko <vda.linux@googlemail.com>
Sat, 8 Sep 2007 17:34:05 +0000 (17:34 -0000)
committerDenis Vlasenko <vda.linux@googlemail.com>
Sat, 8 Sep 2007 17:34:05 +0000 (17:34 -0000)
commit4c1d88daff14331b64ef1019faf3f6f1ecaff817
tree9676ad98bca2d41581406e7ccebbbd069f4d74cc
parente7c1ad1540ad18b17bd9ec93823dbf38583b5b87
top: get rid of on-stack variable buffers, use permanent one.
code shrank with and without TOPMEM:

top_main                                             828     844     +16
display_process_list                                1525    1473     -52
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 1/1 up/down: 16/-52)            Total: -36 bytes

top_main                                            1150    1171     +21
display_topmem_process_list                         1150    1167     +17
display_process_list                                1525    1473     -52
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 2/1 up/down: 38/-52)            Total: -14 bytes
include/platform.h
procps/top.c