From 110fe7647c6d91c6132d8094dc4476800c0501a2 Mon Sep 17 00:00:00 2001 From: Michael Mraka Date: Thu, 17 Sep 2015 10:56:09 +0200 Subject: [PATCH] speedup filter(pkg=XXX, arch__neq=WWW) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit originally 17976 calls 157s, i.e. 17% out of 15 mins Signed-off-by: Lubomír Sedlář --- pungi/gather_dnf.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pungi/gather_dnf.py b/pungi/gather_dnf.py index a01385b5..80317278 100644 --- a/pungi/gather_dnf.py +++ b/pungi/gather_dnf.py @@ -229,7 +229,7 @@ class Gather(GatherBase): all_pkgs = list(package_list) native_pkgs = self.q_native_binary_packages.filter(pkg=all_pkgs).apply() - multilib_pkgs = self.q_multilib_binary_packages.filter(pkg=all_pkgs).filter(arch__neq="noarch").apply() + multilib_pkgs = [pkg for pkg in all_pkgs if pkg.arch != "noarch"] result = set()