[Zope-Checkins] CVS: Zope/lib/python/Products/ZCatalog - ZCatalog.py:1.119

Casey Duncan casey@zope.com
Thu, 15 Aug 2002 08:44:52 -0400


Update of /cvs-repository/Zope/lib/python/Products/ZCatalog
In directory cvs.zope.org:/tmp/cvs-serv2284

Modified Files:
	ZCatalog.py 
Log Message:
Small optimization on reindexIndex:

  - Removed unnecessary tuple cast

  - OIBTree.keys() is faster than IOBTree.values()


=== Zope/lib/python/Products/ZCatalog/ZCatalog.py 1.118 => 1.119 ===
--- Zope/lib/python/Products/ZCatalog/ZCatalog.py:1.118	Wed Aug 14 18:25:15 2002
+++ Zope/lib/python/Products/ZCatalog/ZCatalog.py	Thu Aug 15 08:44:51 2002
@@ -441,8 +441,7 @@
 
 
     def reindexIndex(self,name,REQUEST):
-
-        paths = tuple(self._catalog.paths.values())
+        paths = self._catalog.uids.keys()
 
         for p in paths:
             obj = self.resolve_path(p)