From 906f42f51dcb10b390732b91409059400c5fb609 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Wed, 16 Mar 2011 13:58:17 -0700 Subject: [PATCH] iter_owners: try the hashed approach in any case Previously, the slow approach was used whenever more than 10 files were given as input. However, large numbers of files don't necessarily mean the hashed approach is a bad choice, so try it in any case. --- pym/portage/dbapi/vartree.py | 8 -------- 1 file changed, 8 deletions(-) diff --git a/pym/portage/dbapi/vartree.py b/pym/portage/dbapi/vartree.py index 32b4852bf..bf48b1508 100644 --- a/pym/portage/dbapi/vartree.py +++ b/pym/portage/dbapi/vartree.py @@ -954,15 +954,7 @@ class vardbapi(dbapi): if not isinstance(path_iter, list): path_iter = list(path_iter) - - if len(path_iter) > 10: - for x in self._iter_owners_low_mem(path_iter, - scheduler=scheduler): - yield x - return - owners_cache = self._populate(scheduler=scheduler) - vardb = self._vardb root = vardb._eroot hash_pkg = owners_cache._hash_pkg -- 2.26.2