* [PATCH] scripts/bloat-o-meter: use the reverse flag for sort
@ 2023-01-06 9:13 Alexander Pantyukhin
0 siblings, 0 replies; only message in thread
From: Alexander Pantyukhin @ 2023-01-06 9:13 UTC (permalink / raw)
To: akpm; +Cc: linux-kernel, paul.gortmaker, nborisov, alexpantyukhin
From: alexpantyukhin <apantykhin@gmail.com>
The sort function has the inbuilt reversal option.
We can use it for save some time.
Signed-off-by: Alexander Pantyukhin <apantykhin@gmail.com>
---
scripts/bloat-o-meter | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/scripts/bloat-o-meter b/scripts/bloat-o-meter
index f9553f60a14a..36303afa9dfc 100755
--- a/scripts/bloat-o-meter
+++ b/scripts/bloat-o-meter
@@ -80,8 +80,7 @@ def calc(oldfile, newfile, format):
if d<0: shrink, down = shrink+1, down-d
delta.append((d, name))
- delta.sort()
- delta.reverse()
+ delta.sort(reverse=True)
return grow, shrink, add, remove, up, down, delta, old, new, otot, ntot
def print_result(symboltype, symbolformat):
--
2.25.1
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-01-06 9:13 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-01-06 9:13 [PATCH] scripts/bloat-o-meter: use the reverse flag for sort Alexander Pantyukhin
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®