[<prev] [next>] [day] [month] [year] [list]
Message-Id: <20230106091319.3824-1-apantykhin@gmail.com>
Date: Fri, 6 Jan 2023 14:13:19 +0500
From: Alexander Pantyukhin <apantykhin@...il.com>
To: akpm@...ux-foundation.org
Cc: linux-kernel@...r.kernel.org, paul.gortmaker@...driver.com,
nborisov@...e.com, alexpantyukhin <apantykhin@...il.com>
Subject: [PATCH] scripts/bloat-o-meter: use the reverse flag for sort
From: alexpantyukhin <apantykhin@...il.com>
The sort function has the inbuilt reversal option.
We can use it for save some time.
Signed-off-by: Alexander Pantyukhin <apantykhin@...il.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
Powered by blists - more mailing lists