[Zope-dev] BTreeFolder2.objectIds() - accessing _tree.keys() slow
sean.upton at uniontrib.com
sean.upton at uniontrib.com
Fri Jan 13 19:57:37 EST 2006
> sean.upton at uniontrib.com wrote:
> > I'm pretty sure this works.
>
> Ok, I get it now. I misread it the first time.
>
> > This returns the equivalent of running
> > self.objectIds(spec=self._mt_index.keys()) on the current
> > trunk/release code, which should be identical to
> self._tree.keys(), but much, much faster.
> > I'm still somewhat ignorant as to why self._tree.keys() is so slow
> > with 100k-plus objects (waking up too many persistent objects?),
>
> I suspect the cost is in creating ghosts for all of the
> persistent objects.
>
> No objections here--I like this patch.
Thanks Shane - glad it makes sense. I don't have contributor rights - would
you or anyone else be willing to gateway this diff for me and commit such
changes?
Thanks,
Sean
More information about the Zope-Dev
mailing list