[Zope-CVS] CVS: Products/ZCTextIndex - Index.py:1.1.2.26

Jeremy Hylton jeremy@zope.com
Fri, 3 May 2002 15:09:28 -0400


Update of /cvs-repository/Products/ZCTextIndex
In directory cvs.zope.org:/tmp/cvs-serv20273

Modified Files:
      Tag: TextIndexDS9-branch
	Index.py 
Log Message:
Add comment explaining conversion logic.


=== Products/ZCTextIndex/Index.py 1.1.2.25 => 1.1.2.26 ===
         except KeyError:
             map = {}
+        # _add_wordinfo() is called for each update.  If the map size
+        # exceeds the DICT_CUTOFF, convert to an IIBTree.
         if len(map) == self.DICT_CUTOFF:
             map = IIBTree(map)
         map[docid] = f