Skip to content

Why deepcopy __dict__ to serialize to json? #16

Description

@melsabagh

The deepcopy of the instance __dict__ during serialization at the following line seems unnecessary:

dict = copy.deepcopy(dict)

I have benchmarked this and it is also a serious bottleneck when serializing large objects. Is there a reason behind creating a deep copy here instead of a shallow copy?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions