From 52376581b9eae3a4fd3d2a01b0eff7c103673a18 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= Date: Thu, 24 Oct 2024 12:44:29 +0200 Subject: [PATCH] Avoid unnecessary temporary list in one more place --- tools/docker/scripts/plot_performance.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/docker/scripts/plot_performance.py b/tools/docker/scripts/plot_performance.py index fed0dc42a0..e09955a96a 100755 --- a/tools/docker/scripts/plot_performance.py +++ b/tools/docker/scripts/plot_performance.py @@ -22,7 +22,7 @@ def main(): plots.append(sys.argv[3 * i + 2]) timings.append(parse_timings(sys.argv[3 * i + 3])) - routines = list(set([r for t in timings for r in list(t.keys())[:6]])) + routines = list(set(r for t in timings for r in list(t.keys())[:6])) routines.remove("total") routines.sort(reverse=True, key=lambda r: timings[0].get(r, 0.0))