[Zope-Checkins] CVS: Zope/lib/python/Products/PluginIndexes/PathIndex - PathIndex.py:1.25.6.5

Andreas Jung andreas@andreas-jung.com
Fri, 21 Feb 2003 09:41:24 -0500


Update of /cvs-repository/Zope/lib/python/Products/PluginIndexes/PathIndex
In directory cvs.zope.org:/tmp/cvs-serv21951/lib/python/Products/PluginIndexes/PathIndex

Modified Files:
      Tag: Zope-2_6-branch
	PathIndex.py 
Log Message:

     - Collector #814: PathIndexes now uses IITreeSet instead of
       IISet. This should result in less memory usage.


=== Zope/lib/python/Products/PluginIndexes/PathIndex/PathIndex.py 1.25.6.4 => 1.25.6.5 ===
--- Zope/lib/python/Products/PluginIndexes/PathIndex/PathIndex.py:1.25.6.4	Thu Nov 28 07:15:16 2002
+++ Zope/lib/python/Products/PluginIndexes/PathIndex/PathIndex.py	Fri Feb 21 09:41:24 2003
@@ -21,7 +21,7 @@
 
 from BTrees.IOBTree import IOBTree
 from BTrees.OOBTree import OOBTree
-from BTrees.IIBTree import IISet, intersection, union
+from BTrees.IIBTree import IITreeSet, IISet, intersection, union
 from OFS.SimpleItem import SimpleItem
 from zLOG import LOG, ERROR
 from types import StringType, ListType, TupleType
@@ -88,7 +88,7 @@
             self._index[comp] = IOBTree()
 
         if self._index[comp].has_key(level)==0:
-            self._index[comp][level] = IISet()
+            self._index[comp][level] = IITreeSet()
 
         self._index[comp][level].insert(id)