[Zope-Checkins] CVS: Zope/lib/python/Products/PluginIndexes/TextIndexNG - GlobbingLexiconNG.py:1.1.2.4
Andreas Jung
andreas@digicool.com
Wed, 9 Jan 2002 19:26:58 -0500
Update of /cvs-repository/Zope/lib/python/Products/PluginIndexes/TextIndexNG
In directory cvs.zope.org:/tmp/cvs-serv22472
Modified Files:
Tag: ajung-textindexng-branch
GlobbingLexiconNG.py
Log Message:
more optimization
=== Zope/lib/python/Products/PluginIndexes/TextIndexNG/GlobbingLexiconNG.py 1.1.2.3 => 1.1.2.4 ===
if i == 0:
digrams.insert(i, (self.eow + pattern[i]) )
- digrams.append((pattern[i] + pattern[i+1]))
+ digrams.append(pattern[i:i+2])
else:
try:
if pattern[i+1] not in wc_set:
- digrams.append( pattern[i] + pattern[i+1] )
+ digrams.append( pattern[i:i+2] )
except IndexError:
digrams.append( (pattern[i] + self.eow) )