Use a set to optimize containment lookups.
authorZac Medico <zmedico@gentoo.org>
Sun, 24 Jun 2007 22:05:52 +0000 (22:05 -0000)
committerZac Medico <zmedico@gentoo.org>
Sun, 24 Jun 2007 22:05:52 +0000 (22:05 -0000)
svn path=/main/trunk/; revision=7008

pym/emerge/__init__.py

index b2fb55c86cdfefa21470a6f1e933f5b20918636d..02283459ad52be3f7e0bd12dca02070dfa5d2e5b 100644 (file)
@@ -2478,7 +2478,7 @@ class depgraph(object):
                # files to fetch list - avoids counting a same file twice
                # in size display (verbose mode)
                myfetchlist=[]
-               worldlist = getlist(self.settings, "world")
+               worldlist = set(getlist(self.settings, "world"))
 
                for mylist_index in xrange(len(mylist)):
                        x, depth, ordered = mylist[mylist_index]