[Zope-CVS] CVS: Products/ZCTextIndex - Index.py:1.1.2.25
Jeremy Hylton
jeremy@zope.com
Fri, 3 May 2002 15:08:43 -0400
Update of /cvs-repository/Products/ZCTextIndex
In directory cvs.zope.org:/tmp/cvs-serv20074
Modified Files:
Tag: TextIndexDS9-branch
Index.py
Log Message:
Undo hasty and stupid change.
Convert from dict -> IIBTree exactly once.
=== Products/ZCTextIndex/Index.py 1.1.2.24 => 1.1.2.25 ===
except KeyError:
map = {}
- if len(map) >= self.DICT_CUTOFF:
+ if len(map) == self.DICT_CUTOFF:
map = IIBTree(map)
map[docid] = f
self._wordinfo[wid] = map