diff options
| author | zmedico <zmedico@gentoo.org> | 2009-01-07 10:46:21 +0000 |
|---|---|---|
| committer | zmedico <zmedico@gentoo.org> | 2009-01-07 10:46:21 +0000 |
| commit | c81210556e7f72dd3175a0acf385c9959c1b9c52 (patch) | |
| tree | d4e6d8c67a86e14e582603f9db1a4dae08cd235a | |
| parent | 96ee96bcdd1bbc39974e53ff3b4fa4132757970e (diff) | |
| download | gentoolkit-c81210556e7f72dd3175a0acf385c9959c1b9c52.tar.gz | |
Inside find_all_packages(), move the unique_array() call out of the loop.
This makes a big performance difference. Thanks to DJ Anderson for reporting.
svn path=/; revision=536
| -rw-r--r-- | trunk/src/gentoolkit/helpers.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/trunk/src/gentoolkit/helpers.py b/trunk/src/gentoolkit/helpers.py index 1823f2c..4652b2d 100644 --- a/trunk/src/gentoolkit/helpers.py +++ b/trunk/src/gentoolkit/helpers.py @@ -130,7 +130,7 @@ def find_all_packages(prefilter=None): for x in t: t2 += porttree.dbapi.cp_list(x) t2 += vartree.dbapi.cp_list(x) - t2 = unique_array(t2) + t2 = unique_array(t2) return [Package(x) for x in t2] def split_package_name(name): |
