diff options
author | Zac Medico <zmedico@gentoo.org> | 2008-11-12 18:32:38 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2008-11-12 18:32:38 +0000 |
commit | cae5acc17d9dd328662eb7788510b8d0a2a1e743 (patch) | |
tree | 06cf2684329f6c014162353d8046b022430ddfa0 | |
parent | 4ad40fc1da7ee4b33eb6a5fa7f9f02b9b06a1aa5 (diff) | |
download | portage-cae5acc17d9dd328662eb7788510b8d0a2a1e743.tar.gz portage-cae5acc17d9dd328662eb7788510b8d0a2a1e743.tar.bz2 portage-cae5acc17d9dd328662eb7788510b8d0a2a1e743.zip |
Use a frozenset to optimize skiplist containment checks inside
NewsManager.updateItems().
svn path=/main/trunk/; revision=11862
-rw-r--r-- | pym/portage/news.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pym/portage/news.py b/pym/portage/news.py index e366287bb..9d51d8baf 100644 --- a/pym/portage/news.py +++ b/pym/portage/news.py @@ -77,7 +77,7 @@ class NewsManager(object): news = os.listdir(path) skipfile = os.path.join(self.unread_path, "news-%s.skip" % repoid) - skiplist = grabfile(skipfile) + skiplist = frozenset(grabfile(skipfile)) updates = [] for itemid in news: if itemid in skiplist: |