Commit 50135607 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

add work around for the performance regression introduced in Zope 2.12.23 in...

add work around for the performance regression introduced in Zope 2.12.23 in BTreeFolder2, for the case where we use BTreeFolder2 directly.
parent fc970248
......@@ -97,3 +97,7 @@ def _cleanup(self):
BTreeFolder2Base._cleanup = _cleanup
# Work around for the performance regression 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.
BTreeFolder2Base.__contains__ = BTreeFolder2Base.has_key
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