PSC, Poi,, and BTrees

Martin Aspeli optilude at
Mon Oct 22 20:43:21 UTC 2007

Raphael Ritz wrote:

> While I'm able to come up with a work-around by suppressing the
> extra handling of BTree folders in
> which isn't strictly necessary because BTree folders support the
> OFS ObjectManager API as well (why was this added in the first place?
> performance reasons?) I still don't understand what's going on here.

Precisely - context.has_key(x) is faster than x in context.objectIds or 
something like that.

> Furthermore, I'm not sure what's really causing the problem
> in the first place and therefore where this should be fixed.
> Currently I tend to think
> isn't clever enough but I might be wrong.

I don't really know what's going on here, but it's perfectly reasonable 
that this could be a bug in, in which case, please test 
and fix. ;-)


Author of `Professional Plone Development`, a book for developers who
want to work with Plone. See

More information about the Product-Developers mailing list