[Zope-Checkins] CVS: Zope/lib/python/Products/PluginIndexes/PathIndex - PathIndex.py:1.15.16.5
Andreas Jung
andreas@andreas-jung.com
Fri, 21 Feb 2003 09:58:47 -0500
Update of /cvs-repository/Zope/lib/python/Products/PluginIndexes/PathIndex
In directory cvs.zope.org:/tmp/cvs-serv26483/lib/python/Products/PluginIndexes/PathIndex
Modified Files:
Tag: Zope-2_5-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.15.16.4 => 1.15.16.5 ===
--- Zope/lib/python/Products/PluginIndexes/PathIndex/PathIndex.py:1.15.16.4 Tue Sep 24 07:26:27 2002
+++ Zope/lib/python/Products/PluginIndexes/PathIndex/PathIndex.py Fri Feb 21 09:58:46 2003
@@ -24,7 +24,7 @@
from BTrees.IOBTree import IOBTree
from BTrees.OOBTree import OOBTree,OOSet
from BTrees.OIBTree import OIBTree
-from BTrees.IIBTree import IISet,difference,intersection,union
+from BTrees.IIBTree import IISet, IITreeSet, difference,intersection,union
from types import StringType, ListType, TupleType
import re,warnings
@@ -89,7 +89,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)