speedup filter(pkg=XXX, arch__neq=WWW)

originally 17976 calls 157s, i.e. 17% out of 15 mins

Signed-off-by: Lubomír Sedlář <lsedlar@redhat.com>
This commit is contained in:
Michael Mraka 2015-09-17 10:56:09 +02:00 committed by Lubomír Sedlář
parent ec56ee75e2
commit 110fe7647c
1 changed files with 1 additions and 1 deletions

View File

@ -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()