[ZCM] [ZC] 2042/ 1 Request "ExtensionClass misses ZODB persistent
reference optimization"
Collector: Zope Bugs, Features,
and Patches ...
zope-coders-admin at zope.org
Thu Mar 9 05:19:34 EST 2006
Issue #2042 Update (Request) "ExtensionClass misses ZODB persistent reference optimization"
Status Pending, Zope/feature+solution medium
To followup, visit:
http://www.zope.org/Collectors/Zope/2042
==============================================================
= Request - Entry #1 by d.maurer on Mar 9, 2006 5:19 am
Uploaded: "ec_getnewargs.pat"
- http://www.zope.org/Collectors/Zope/2042/ec_getnewargs.pat/view
The ZODB implements an important optimization for persistent references:
it can include a class reference in a persistent reference
such that a ghost can be instanciated without loading the object.
In order for this optimization to be possible, the class must
not define "__getnewargs__". Unfortunately, "ExtensionClass.Base"
defines it and therefore prevents this optimization for
ExtensionClass instances (i.e. for all Zope2 objects).
The attached patch removes the "__getnewargs__" definition
from "ExtensionClass.Base", changes the "_reduce" definition
accordingly and updates the tests.
==============================================================
More information about the Zope-Collector-Monitor
mailing list