[Zope-dev] TypesTool speedup

Andreas Jung lists at zopyx.com
Sun Mar 4 09:09:50 EST 2007



--On 4. März 2007 13:57:23 +0100 Wichert Akkerman <wichert at wiggy.net> 
wrote:

> I'm forwarding a message from limi here, since it makes much more sense
> here than it does on plone-developers. To summarize it: while analying
> performance of the Plone 3 codebase they noticed a lot of time was spent
> trying to figure out which types could be added at a location. Part of
> that logic uses the TypesTool _queryFactoryMethod function, which goes
> through the dispatcher to get to the factory method for a type, which is
> apparently very slow in Zope 2.10, and much faster in Zope 2.9.
>

Any idea why the code is different between 2.9 and 2.10?

> They came up with http://paste.plone.org/13211 which is an imho somewhat
> evil approach which introduces a thread-local cache for
> App.FactoryDispatcher._product_packages. As described below the speedup
> as a result of that is huge.

I would not be opposed against such a speedup patch as long as it does
not raise other problems. However I don't know App.* enough to be evaluate 
the patch.

Andreas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 186 bytes
Desc: not available
Url : http://mail.zope.org/pipermail/zope-dev/attachments/20070304/4477924b/attachment.bin


More information about the Zope-Dev mailing list