Skip to content

Why isn't zope using copyreg extension registry ? #1275

@perrinjerome

Description

@perrinjerome

Using copyreg extension registry seems a very easy way to reduce the size of pickles, there's even a range reserved to Zope:
https://github.com/python/cpython/blob/3.14/Lib/copyreg.py#L217

Is there a reason not to use it ?

I think this cannot be used for persistent classes, because only their state is pickled, but for non persistent classes such as DateTime.DateTime this looks like a very easy way to have smaller pickles.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions