Commit fdf4fa44 authored by Vincent Pelletier's avatar Vincent Pelletier

Work around performance decrease introduced in Zope 2.12.23 .

Otherwise, we use superclass' __contains__ implementation, which uses
objectIds, which is inefficient in HBTreeFolder2 to lookup a single key.
parent 0a682f7f
......@@ -628,6 +628,10 @@ class HBTreeFolder2Base (Persistent):
raise AttributeError, name
return res
def __contains__(self, key):
marker = []
return self._getOb(key, marker) is not marker
InitializeClass(HBTreeFolder2Base)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment