I wanted to see how much faster brain.getObject() would be if the returned object was located in a BTreeFolder versus a normal folder so I wrote a benchmark that created about 10,000 light simple objects in two distinctly different containers and each with a ZCatalog that has a PathIndex.
I would expect the BTreeFolder parenting calls of brain.getObject() to be much faster but I found that there was NO DIFFERENCE. wtf?! The benchmark is too messy to share right now but how come this could have happened? getObject() basically does a parent.restrictedTraverse(path_splitted[-1]) which should be some sort of getattr() on the container right? Is there something obvious I've missed? -- Peter Bengtsson, work www.fry-it.com home www.peterbe.com hobby www.issuetrackerproduct.com _______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )