-
Notifications
You must be signed in to change notification settings - Fork 18
Open
Labels
Effort: MediumHow to waste a beautiful weekendHow to waste a beautiful weekendNeeds: DocImprovements or additions to documentationImprovements or additions to documentationNeeds: TestHey, it compiles! Ship it!Hey, it compiles! Ship it!Priority: HighA blocking bug or an important featureA blocking bug or an important featureType: EnhancementNew feature or requestNew feature or request
Description
Currently, if you want to serialize a frozendict to JSON, you have to convert it to dict, even if frozendict is a Mapping. This is a limitation of json builtin and third party modules.
To mitigate speed problems, a to_dict() method can be added. It will return a memcopy of frozendict into a new dict object. It should be much faster than dict(a_frozendict).
This new method should also speed up pickle.dumps(). Since frozendict can be really useful in multiprocessing, this could be a nice bonus.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Effort: MediumHow to waste a beautiful weekendHow to waste a beautiful weekendNeeds: DocImprovements or additions to documentationImprovements or additions to documentationNeeds: TestHey, it compiles! Ship it!Hey, it compiles! Ship it!Priority: HighA blocking bug or an important featureA blocking bug or an important featureType: EnhancementNew feature or requestNew feature or request